question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"UserInfo" error on run at ios (3.9.2)

See original GitHub issue

Getting following error: Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘unable to serialize userInfo: Error Domain=NSCocoaErrorDomain Code=3851 “Property list invalid for format: 200 (property lists cannot contain objects of type ‘CFNull’)” UserInfo={NSDebugDescription=Property list invalid for format: 200 (property lists cannot contain objects of type ‘CFNull’)}’

When running following JS:

    var tomorrow_at_7_am = new Date('2016-01-10 07:00:00.01');
    cordova.plugins.notification.local.schedule({
        id: 1,
        text: "text comes here",
        firstAt: tomorrow_at_7_am,
        every: "day" // "minute", "hour", "week", "month", "year"
    });

using phonegap cli 5.4.0

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
padhocommented, Feb 28, 2016

Hi, this issue arises from the fact that Safari can’t parse your date format. See this discussion on Stackoverflow.

A quick fick would be something like:

var tomorrow_at_7_am = new Date('2016-01-10 07:00:00.01'.replace(/\s/, 'T'));

Make sure that the timezone is correct. You could also take a look at moment.js which makes date handling a lot easier.

0reactions
rwillettcommented, Feb 22, 2017

No update so closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic app won't log in Xcode - Stack Overflow
Running an Ionic app that works fine on browser and used to work on Xcode simulator and iPhones. I'm watching the log file...
Read more >
iOS update and restore errors - Apple Support
iOS update and restore errors · Try these steps first · Choose your error number or message · Update the software on your...
Read more >
iOS: error: exportArchive: exportOptionsPlist - ionic-v3
Hi, I build my app the last time without problems for iOS. Does anybody know what to do now?
Read more >
How to config and consume Push Notification from SAP ...
Push notification messages for the iOS platform cannot be tested on ... to retrieve the notification message from the 'userinfo' structure.
Read more >
Other Changes - CocoaPods
[AUTOMATIC] iOS 4.14.2 => 4.14.3 (#270) via RevenueCat Git Bot (@RCGitBot) ... re-add error message if SDK hasn't been configured (#253) via Andy...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found