Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android emulator not receiving push notifications

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.

like image 930
Christopher Lawless Avatar asked Dec 11 '13 14:12

Christopher Lawless


People also ask

Can Android emulator receive push notifications?

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.

Does Push Notification working on emulator?

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.

Why am I not receiving push notifications on my Android?

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.

Why are my push notifications not working?

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.


1 Answers

Which target have your emulator? For Google Services like GCM, use a "Google APIs" (any version) target to receive push notifications

like image 189
iflorit Avatar answered Sep 24 '22 15:09

iflorit