firebase android-消息发送失败



我是Android开发的新手。我遵循本教程,以使用Firebase启用推送通知。使用FCM注册令牌消息向我的模拟器发送通知失败,我不确定为什么。

在日志中说未链接firebaseauth(在下面的代码段中提供(。

04-23 12:09:23.001 2852-2852/com.example.bachao.bachaoapp D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
04-23 12:09:23.041 2852-2852/com.example.bachao.bachaoapp W/InstanceID/Rpc: Found 10012
04-23 12:09:23.053 2852-2852/com.example.bachao.bachaoapp D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
04-23 12:09:54.324 2852-2875/com.example.bachao.bachaoapp V/FA: Inactivity, disconnecting from the service
04-23 12:09:54.581 2852-2880/com.example.bachao.bachaoapp W/InstanceID/Rpc: No response android.os.ConditionVariable@d85606d
04-23 12:09:54.585 2852-2880/com.example.bachao.bachaoapp D/FirebaseInstanceId: background sync failed: TIMEOUT, retry in 10s
04-23 12:10:28.491 2852-3331/com.example.bachao.bachaoapp D/FirebaseInstanceId: background sync failed: AUTHENTICATION_FAILED, retry in 20s

有人可以帮助我解决这个问题吗?

谢谢。

请按照以下以下步骤: -

1) set your emulator target to Google API 
2) add google account to your emulator:
setting->account&sync-> Add account 

最新更新