iOS RemoteNotifications userInfo is null
Hi! I'm having a bad time reading the data passed by a remote notification. The steps seem clear, but the dictionary is null, userInfo.count returns 0.
In the xcode generated by unity you can open the file UnityAppController.mm, in this file you can see the method: - (void)application:(UIApplication*)application didReceiveRemoteNotification:(NSDictionary*)userInfo
If you do a log of the userInfo you can see the dictionary, in my case:
{ "aps" : { "alert" : { "body" : "anything", "idVideoGame" : 1, "expire" : "432000000", "cb" : "true", "action" : 6, "location" : "6", "data" : "{\"id\": \"id559747222\"}", "idEnvironment" : 6, "flags" : "-1" } } }
So, I know that the info is there, but when is parsed to unity, userInfo becomes null.
Do you need to send anything special inside the json or something? I'm a little bit lost here.
Your answer
Follow this Question
Related Questions
How to detect if push notification is launched from lock screen or received in-app 0 Answers
Google Play Game Multiplayer Notifications Failure 1 Answer
Cannot obtain apns token in Unity 5.4.0 2 Answers
How to cancel iOS LocalNotification? 1 Answer
IOS Notification LOGIC Error,IOS notificaiton issue 0 Answers