And yes thats correct. When I open the app for the first time everthing works fine (with multiple messsages, so not just the first message is working). But after closing the app and starting it again the handling of the message just doesnt trigger anymore.
I receive push notification when puttingn the app in the background but not closing it. When tapping on the message the app opens, but no alert is showing up.
And I am also receiving push messages when the app is closed.
Ok, so when you open the app a second time and receive a push notification while it is open just nothing happens. When you then put it in the background the OS shows the pushes, but when you “activate” them the app does nothing to handle them again.
Are there any reasons against using 2 push-plugins ?
I would really like to continue to use the ionic-cloud push service because we are heavily relying on the auth - service and the combination with push when it comes to adressing secific users with push notifications. And the ionic push service is bound to the phonegap-plugin-push (as far as I understood).
But could I use a different plugin like cordoca-plugin-fcm (https://github.com/fechanique/cordova-plugin-fcm) for realising the “missing/buggy” part concerning the in-app handling of the messages.
Any ideas? I think I’ll give it a try … although I know this sounds kind of desperate
You need to call the register-method on every startup of the app. The docs state this is recommended. But its also written that the login function would be the best place to put it. Since we are using localstorage to save the authentification the login was not called anymore.