JSON value '<null>' of type NSNull cannot be converted to NSNumber
See original GitHub issueSetting a scheduled notification works fine the first time. To update notification time, I’m using the following snippet and it fails with the error shown in the screenshot.
PushNotification.cancelAllLocalNotifications()
PushNotification.localNotificationSchedule({
message: 'My notification message.',
date,
repeatType: 'day'
});
PS. I’m using the master
branch.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:8
- Comments:11 (1 by maintainers)
Top Results From Across the Web
JSON value '<null>' of type NSNull cannot be converted to ...
my problem was with source of the images that i had in my component. i had tell the image components to pass null...
Read more >JSON value '<null>' of type NSNull cannot be ... - GitHub
Description My react-native app is working fine in android without any problem. But when I run it in IOS simulator, this error comes...
Read more >JSON VALUE '<NULL>' of type nsnull cannot be converted to ...
Coding example for the question react native iOS - JSON VALUE ' ' of type nsnull cannot be converted to a valid url-React...
Read more >JSON value of type NSnull cannot be converted to NSString?
Hello Firebase, I have strange error. react-native run-android works fine without error. but react-native run-ios failed with JSON value of ...
Read more >iOS : JSON value 'null' of type NSNull cannot be converted to ...
iOS : JSON value ' null' of type NSNull cannot be converted to NSString [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] ...
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
I came into this issue too and tried to debug it and found that /node_modules/react-native-push-notification/index.js
in my js I didn’t set number for local notification
so when code execute parseInt(undefined, 10), it will cause an error so I guess that’s why it finally comes out this issue.
Solution1 :Then I tried to add a line of code to check number value as this:
Then solve this issue.
Solution2: or just in my js set number a value.
So please have a look if my tips is all right. Thanks @zo0r
Hello @a-koka check this
I make it short in your notification options add
number : anyNumberYouWantIGuess