FYI: Resumed iOS 10 Notifications results in an error #1002
Description
Expected Behaviour
App opens and handles notification, which performs an action.
Actual Behaviour
App opens but handlers does not receive the notification or data.
Output shows a failure in push.js:43. notifications[i] is undefined.
Reproduce Scenario (including but not limited to)
- iOS 10 beta 1
- Open app (can be running through XCode so you can see output)
- Press home button
- Send a notification
- Press the notification
- App opens, view the output on XCode
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
iOS 10 beta 1 on iPhone 6.
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Cordova CLI version and cordova platform version
CLI version: 6.1.1
cordova ios 4.1.1
Plugin version
1.7.1
Sample Push Data Payload
{ "uri": "/test" }
Sample Code that illustrates the problem
This all works on iOS 9 using the standard registration notification registration code.
Logs taken while reproducing problem
2016-06-19 12:07:39.558293 App Name[4973:890464] Push Plugin handleActionWithIdentifier com.apple.UNNotificationDefaultActionIdentifier
2016-06-19 12:07:39.558670 App Name[4973:890464] Push Plugin userInfo {
aps = {
alert = "Check this out!";
badge = "-1";
};
callback = "com.apple.UNNotificationDefaultActionIdentifier";
notId = 1411111111111129336;
uri = "/test";
}
2016-06-19 12:07:39.559533 App Name[4973:890464] Push Plugin notId 1411111111111129336
2016-06-19 12:07:39.562717 App Name[4973:890464] Notification received
2016-06-19 12:07:39.562815 App Name[4973:890464] Push Plugin key: alert
2016-06-19 12:07:39.562898 App Name[4973:890464] Push Plugin key: badge
2016-06-19 12:07:39.897422 App Name[4973:890464] Error in Success callbackId: PushNotification1017597311 : TypeError: undefined is not an object (evaluating 'namespaces[i]')
2016-06-19 12:07:40.127061 App Name[4973:890464] active
2016-06-19 12:07:40.127163 App Name[4973:890464] PushPlugin skip clear badge