Firebase Android - 邮件发送失败

时间:2017-04-23 17:32:22

标签: android firebase firebase-cloud-messaging

我是Android开发的新手。我按照this tutorial启用了使用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 个答案:

答案 0 :(得分:0)

请按照以下步骤操作: -

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