I'm using push notifications on google cloud, however for some reason i cant receive push notifications on the emulator.
The same application does receive notifications when i test it on a real device however.
Has anyone else encountered this or found solutions to it? the emulated device has net access and is the same android version as the real one so i cant think of any reason it shouldn't work.
If your target platform is Android, you can test a push notification on an emulator if the emulator target uses a version of Google APIs to receive the push notifications.
The emulator must enable the Google API for Google Play services. To resolve this issue, the mobile developer must create an emulator that uses Google API as the target OS.
Settings > Sounds & Vibration > Do Not Disturb: if this setting is enabled, Push Notifications will not be received. Make sure this is disabled. Settings > General > Background App Refresh: this setting allows the app to run in the background and must be turned on.
You have all push notifications blocked by default on your browser. You have an extension such as an ad blocker which blocks receiving push notifications. You have reset the settings of the browser, that's why the service worker is removed. You have them blocked by default on your operating system.
Which target have your emulator? For Google Services like GCM, use a "Google APIs" (any version) target to receive push notifications
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With