2017-04-23 143 views
1

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

在日志中表示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 [email protected] 
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 

有人能帮我解决这个问题吗?

谢谢。

+0

代比你好。你能发布你现在的实际代码吗?另外,你能否详细说明关心的是什么?您提到令牌消息失败,但日志指出了Firebase身份验证?干杯! –

回答

0

请按照下列步骤如下图: -

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