我爲我的應用程序使用Gimbal。 Gimbal搜索我的設備的位置,但不發送推送通知。
logcat的打印以下錯誤:Android Gimbal推送通知
[PushTokenJob] Google Play Services not available - unable to register for push
我的代碼是:
PlaceManager.getInstance().startMonitoring();
CommunicationManager.getInstance().startReceivingCommunications();
// Setup Push Communication
String gcmSenderId = "479334007363"; // <--- SET THIS STRING TO YOUR PUSH SENDER ID HERE (Google API project #) ##
registerForPush(gcmSenderId);
在registerForPush方法我叫萬向節的方法推送通知:
Gimbal.registerForPush(gcmSenderId);
我整合了我的項目的谷歌播放服務 – Sneha