Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

FYI: Resumed iOS 10 Notifications results in an error #1002

Closed
@tusharsingh

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)

  1. iOS 10 beta 1
  2. Open app (can be running through XCode so you can see output)
  3. Press home button
  4. Send a notification
  5. Press the notification
  6. 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

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions