FirebaseInstanceId.getInstanceId()失败,在连接到iPhone的WearOS设备上出现SERVICE_NOT_AVAILABLE

时间:2018-12-13 04:58:34

标签: ios firebase firebase-cloud-messaging wear-os

连接到iPhone的WearOS设备最近在调用FirebaseInstanceId.getInstanceId()时开始出现SERVICE_NOT_AVAILABLE错误。确切的例外是:

2018-12-07 14:37:26.529 5093-5093/com.xxxxx.xxxxxx E/OurFirebaseActivity: Could not get Firebase token. Exception: java.io.IOException: SERVICE_NOT_AVAILABLE
    java.io.IOException: SERVICE_NOT_AVAILABLE
        at com.google.firebase.iid.zzr.zza(Unknown Source:66)
        at com.google.firebase.iid.zzr.zza(Unknown Source:79)
        at com.google.firebase.iid.zzu.then(Unknown Source:4)
        at com.google.android.gms.tasks.zzd.run(Unknown Source:5)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
        at java.lang.Thread.run(Thread.java:764)

这似乎并非仅针对我们的应用程序,当查看设备日志时,这似乎也发生在其他应用程序/服务中。

2018-12-07 14:02:48.931 891-3870/? I/GCM: Registration for wearable paired to iOS
2018-12-07 14:02:48.956 857-857/? D/AltFCMManager: reading APNS_TOKEN dataitem found a null dataitem: 
2018-12-07 14:02:49.107 857-881/? I/zygote: Background concurrent copying GC freed 
2018-12-07 14:02:53.950 891-3870/? W/GCM: Timed out getting APNS token from clockwork
2018-12-07 14:02:53.963 4509-4544/? E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE

所有firebase库组件均为最新。还确认GoogleApiAvailability.getInstance()。isGooglePlayServicesAvailable(this)在这些设备上返回SUCCESS。

也许最近的Google Play服务更新破坏了此设备组合上的FCM?

1 个答案:

答案 0 :(得分:0)

这是由iPhone的WearOS应用中的一个问题引起的,Google于2019年1月初发布了v3.11.27的修复程序。