I am so much frustrated, since i am continuously getting null device token on certain devices whereas its working perfectly fine on many other devices. the phone i am talking about is running on 4.4.2. I have added the following code into my manifiest.
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<service android:name=".Services.FireBaseMsgService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<service android:name=".Services.FirebaseIDService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
Please guide me on this,since i have already wasted much time on this issue searching and finding solution.
Thanks in advance.
So finally i have got the answer and this might help someone.
After searching alot - i found it was a bug in firebase 11.6.0 release which i was using - just updated it to 12.0.1 and now i am able to get the token for every device.
当使用Firebase API且设备未安装Google Play服务时,firebase设备令牌为null
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.