-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Background Notifications on iOS #109
Comments
Is that the same issue as this one? |
Closing as duplicate of #93 |
@macdonst on android when we receive a notification and the app is in background, when clicking on the notification in the statusbar it opens the app and then the notification callback is run. Isn't something we can expect for iOS too? I think #93 is talking about receiving the notification without even putting the application in foreground no? |
I was indeed talking about running the callback when the user starts the app from the notification status bar on iOS There is clearly not the same behaviour on Android (callback is called with foreground option set to true) and on iOS (callback never called) |
@alexislg2 you mean callback has foreground=false no? @macdonst I think is the 2nd case described here. I also expect the behavior to be the same for Android and iOS in this case (however don't know if this is possible at all). When receiving an iOS notification while being in background, when opening the notification, the callback should rather be fired otherwise we don't have any way to trigger code on our app. |
@slorber yeah right sorry for the mistake. It was working properly on the deprecated PushPlugin https://github.com/phonegap-build/PushPlugin |
@alexislg2 okay, I've re-opened this. The iOS code is based off of the old PushPlugin so I'm wondering what the diff is. |
+1 here I may have to roll back to the old plugin, if there is no fix for that |
Fixed for me with the commit 9f35486 |
Related: #117 |
Closing as it appears to be fixed by #117 |
This thread has been automatically locked. |
Hey,
I manage to receive notifications in foreground on iOS perfectly but when I send notification when the app is in not running, I receive it in the status bar but when I open the app, the
push.on('notification'
callback is never called.Is that normal behaviour?
On Android it is called with
data.additionalData.foreground
set tofalse
.The text was updated successfully, but these errors were encountered: