我正在使用Gimbal作为我的申请。Gimbal搜索我的设备的位置,但不发送推送通知。
Logcat打印以下错误:
PushTokenJob Google服务不可用-无法注册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的推送通知方法:
Gimbal.registerForPush(gcmSenderId);发布于 2015-05-23 00:55:01
为了启用推送通知,该项目需要Google提供的Google服务库项目。按照这里的说明,http://developer.android.com/google/play-services/setup.html为您的项目设置Google服务。一旦设置完毕,您就不会再看到"PushTokenJob Google服务不可用-无法注册推送“错误。如果您正在使用Eclipse,则必须重新启动它才能获取更改。
要在作为Gimbal SDK一部分提供的示例应用程序中测试这一点,请确保取消了AndroidManifest.xml中的标记注释。
<!-- <meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" /> —>在未来,您可以通过登录https://manager.gimbal.com的Gimbal帐户和单击Support > Submit请求打开支持票,从而从Gimbal获得更快的答案。
https://stackoverflow.com/questions/29668938
复制相似问题