Open fyrstelin opened 9 years ago
Am I the only one with this problem?
Indeed, this is the expected behavior in iOS - the JS callback will be executed only when the app is launched through the notification or the notification is received when the app is running.
It would be nice if the plugin treated push notifications when the app is sleeping in the same manner as when the app i closed or in background. I do not know any bigger app, where push notifications does not trigger an alert when the app is sleeping. Would you consider implementing it?
The problem also exists if actions with
activationMode: pushPlugin.UserNotificationActivationMode.Background
are clicked by the user. How de we handle this? The notification arrives in js when app is started. This kind of defeats the purpose of this setting pushPlugin.UserNotificationActivationMode.Background. If the app needs to be started for the js being called there is no need for this option. Or am I missing something here?
When app sleeps, no alerts shows.
Example:
As far as I understand, this is probably the way the os should handle the notification and let the app react to it. Problem is that the javascript does not run before the app is open again.