-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS Interactive Push Background Mode Doesn't Seem to work. #70
Comments
Just adding some more context: Here is the plugin reg: Here is the tokenHandler JS:
} |
Hey, let's continue the discussion from #69 here About the other issue - do you expect someone to click a button when you send a push with content-available key? The "didReceiveRemoteNotification with fetchCompletionHandler" event handler lacks the "identifier" value, that is received in the "handleActionWithIdentifier" handler, that's why is is not part of the data object in the callback. Here is my log when I sent a push with content-available and sound:
and right after that if i click the button that is part of the notification i get into this: Would you say how those events look when you test it on your device, so we can come to a conclusion about this. |
I was testing content-available to try and attempt to get it to work basically. I don't think there is a usage scenario where it should be required to be coupled with Interactive push. My assumption would be that content-available=1 would be used for background push payloads only. After some work on the plugin I had to comment out: |
Using the latest plugin version 3.0.6, I have the iOS interactive push plugin wired up. When it comes in the user selects an action, but nothing happens (testing from the shade when the device is logged in).
This is the output from the log when the notification is received:
: Device Paused Event
: Device Paused Event - In GeoService
: Stopping Geolocation
: didReceiveNotification
: Notification received
: Msg: {"sound":"beep.caf","content-available":"1","alert":"Call Test iOS9 Push phonegap-build#104","category":"CALLS","badge":"1","eventCode":"C40946","identifier":"RESP",foreground:"0"}
Then after the app is activated the log reflects processing of the action:
: Push Notification: On Notificaiton Recieved Event
: {"sound":"beep.caf","content-available":"1","alert":"Call Test iOS9 Push phonegap-build#104","category":"CALLS","badge":"1","eventCode":"C40946","identifier":"RESP","foreground":"0"}
: Processing iOS Responding Push Action
: CallId 40946
: Device Resumed Event
: Setting local data
During testing the app was in memory and it was also tested with the app not in memory (coldstart), this is the log output:
: assertion failed: 12H143: libxpc.dylib + 71768 [C9F3C08A-8A3B-3849-A905-D24911240853]: 0x7d
: Apache Cordova native platform version 3.8.0 is starting.
: Multi-tasking -> Device: YES, App: YES
: Unlimited access to network resources
: [CDVTimer][statusbar] 25.731027ms
: [CDVTimer][file] 2.654016ms
: [CDVTimer][statusbar] 0.010014ms
: [CDVTimer][uniquedeviceid] 0.064969ms
: [CDVTimer][threedeetouch] 0.048041ms
: [CDVTimer][splashscreen] 9.157002ms
: [CDVTimer][TotalPluginStartup] 38.909018ms
: Notification received
In the coldstart scenario the notification is just gone, when the app is activated by the user the JavaScript callback is not called.
The text was updated successfully, but these errors were encountered: