Push notifications in Android emulator (5.1.1 or later)


Staff member
I've registered for a GCM account with Google and set up my app to accept push notifications, but in the emulator I'm not receiving them (I've also tried with a 3rd party test app (<a href="https://imamraza.wordpress.com/2013/09/04/how-to-test-android-gcm-push-notification/" rel="nofollow noreferrer">https://imamraza.wordpress.com/2013/09/04/how-to-test-android-gcm-push-notification/</a>) in case I did something wrong and that's not working either - I don't have access to a real device for testing unfortunately).

After reading some other StackOverflow answers (<a href="https://stackoverflow.com/questions/20521600/android-emulator-not-receiving-push-notifications">Android emulator not receiving push notifications</a>, <a href="https://stackoverflow.com/questions/16713321/push-notifications-dont-work">Push notifications don&#39;t work</a>), it seems like I need to create an emulator with
Google APIs
target. At first it wasn't there, but after adding some more packages in Android SDK Manager, I was able to see
Google APIs
as a target. Unfortunately setting the target to that results in CPU/ABI "No system images installed for this target" error:

<a href=" " rel="nofollow noreferrer"><img src=" " alt="enter image description here"></a>

After some more digging around, I stumbled into more SO answers, suggesting installing additional packages (<a href="https://stackoverflow.com/questions...vice-no-system-image-installed-for-this-targe">Fail to create Android virtual Device, &quot;No system image installed for this Target&quot;</a>). That didn't help either, here is what I have installed now:

<a href=" " rel="nofollow noreferrer"><img src=" " alt="enter image description here"></a>
<a href=" " rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q8SR1.png" alt="enter image description here"></a>

The only thing missing from my list that some others have recommended is the "Android Support" library, which apparently seems to be deprecated now according to
android list sdk -a --extended

id: 140 or "extra-android-support"
    Type: Extra
    Desc: Android Support Library, revision 23.2.1 (Obsolete)
        By Android
        Install path: extras/android/support

What am I missing to get the Android Emulator with Google APIs target to work? It seems like a lot of the advice that I stumbled upon is dated.