GCM is not working on Kindle fire devices: java.la

2019-04-12 01:19发布

Its throwing exception while calling GCM.register(this,SENDER_ID);

java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf

What is alternative option of GCM on Amazon devices?

2条回答
Juvenile、少年°
2楼-- · 2019-04-12 01:52

Kindle Fire don't have "Google Play Services" library installed, so GCM won't work. Try ADM instead.

查看更多
Viruses.
3楼-- · 2019-04-12 02:01

GCM have some limitation,

In android device must have google play store, second one is android device configure with google account (This limitation in some devices.).

You got error this because kindle dose not have this package which gcm needed.

查看更多
登录 后发表回答