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.

JSON value '<null>' of type NSNull cannot be converted to NSDictionary

See original GitHub issue

Description

I’m using the example project files in my project to test the notifications and it is working fine in Android.

But on iOS, I’m getting this error

JSON value '<null>' of type NSNull cannot be converted to NSDictionary

whenever I’m clicking on local as well as schedule notification. Although It is working fine and I’m receiving the notification but I’m getting this error every time I’m clicking on them.

img_0196

Details

“react-native-push-notification”: “^3.1.1”, “react”: “16.4.1”, “react-native”: “0.56.0”,

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

68reactions
SCJMENGMENGcommented, Oct 8, 2018

Modify the NotifService’s “category” to be a string,‘userInfo’to be a dictionary, and’number’ to be a number.

5reactions
vygandascommented, Aug 26, 2018

Same here.

Read more comments on GitHub >

github_iconTop 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 >
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 >
JSON value '<null>' of type NSNull cannot be converted to ...
Your issue is most likely due to something that wasn't defined in your native IOS code somewhere. I received this error when I...
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 >
Fixing an error: JSON value '1' of type NSNumber cannot be ...
After having upgraded React Native to 0.62.2, it got the following error: JSON value '1' of type NSNumber cannot be converted to NSString ......
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