GCM is not working on Kindle fire devices: java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf

﹥>﹥吖頭↗ 提交于 2019-12-21 20:34:48

问题


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?


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/22833590/gcm-is-not-working-on-kindle-fire-devices-java-lang-unsupportedoperationexcepti

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!