| Can not receive/handle push notifications while app is in foreground with ionic-showcase and also with plain Cordova app using @aerogear/cordova-plugin-aerogear-push plugin by following documentation [1]. This was tested by sending message from UPS and from Firebase directly as well. In all cases it is possible to receive notification while app is in background. Below are two repos to reproduce, one where foreground notification work - phonegap-push-plugin, one where it does not work - cordova-plugin-aerogear-push. phonegap-push-plugin - https://github.com/jhellar/phonegap-push-test Steps:
- Add google-services.json file
- Change app id in config.xml
- Cordova platform add android
- Cordova run android
- Check console log with “chrome://inspect/#devices”
cordova-plugin-aerogear-push - https://github.com/jhellar/aerogear-push-test Steps:
- Add google-services.json file
- Change app id in config.xml
- Npm run build
- Cordova platform add android
- Cordova run android
- Check console log with “chrome://inspect/#devices”
[1] http://docs.aerogear.org/aerogear/latest/push-notifications.html#setting-up-the-push-client-app |