"UserInfo" error on run at ios (3.9.2)
See original GitHub issueGetting 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:
- Created 8 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
No update so closing.