好的,我有来自marknutter / GCM-Cordova的gcm插件,并安装了airpush sdk ...... https://github.com/marknutter/GCM-Cordova
两者都是Seperatly工作但是当我收到错误并且应用程序崩溃时... logcat info ...
11-26 20:43:31.475: D/webviewglue(1847): nativeDestroy view: 0x2a3a5c88
11-26 20:43:32.655: D/BUGSENSE(1847): {"data": [], "error": null}
11-26 20:43:32.675: D/BugSenseHandler(1847): java.lang.NullPointerException: println eeds a message
11-26 20:43:32.675: D/BugSenseHandler(1847): at android.util.Log.println_native(Native Method)
11-26 20:43:32.675: D/BugSenseHandler(1847): at android.util.Log.v(Log.java:117)
11-26 20:43:32.675: D/BugSenseHandler(1847): at school.is.in.GCMIntentService.onMessage(GCMIntentService.java:63)
11-26 20:43:32.675: D/BugSenseHandler(1847): at com.google.android.gcm.GCMBaseIntentService.onHandleIntent(GCMBaseIntentService.java:179)
11-26 20:43:32.675: D/BugSenseHandler(1847): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
11-26 20:43:32.675: D/BugSenseHandler(1847): at android.os.Handler.dispatchMessage(Handler.java:99)
11-26 20:43:32.675: D/BugSenseHandler(1847): at android.os.Looper.loop(Looper.java:137)
11-26 20:43:32.675: D/BugSenseHandler(1847): at android.os.HandlerThread.run(HandlerThread.java:60)
11-26 20:43:32.675: E/AndroidRuntime(1847): FATAL EXCEPTION: IntentService[GCMIntentService-GCMIntentService-4]
11-26 20:43:32.675: E/AndroidRuntime(1847): java.lang.NullPointerException: println needs a message
11-26 20:43:32.675: E/AndroidRuntime(1847): at android.util.Log.println_native(Native Method)
11-26 20:43:32.675: E/AndroidRuntime(1847): at android.util.Log.v(Log.java:117)
11-26 20:43:32.675: E/AndroidRuntime(1847): at school.is.in.GCMIntentService.onMessage(GCMIntentService.java:63)
11-26 20:43:32.675: E/AndroidRuntime(1847): at com.google.android.gcm.GCMBaseIntentService.onHandleIntent(GCMBaseIntentService.java:179)
11-26 20:43:32.675: E/AndroidRuntime(1847): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
11-26 20:43:32.675: E/AndroidRuntime(1847): at android.os.Handler.dispatchMessage(Handler.java:99)
11-26 20:43:32.675: E/AndroidRuntime(1847): at android.os.Looper.loop(Looper.java:137)
11-26 20:43:32.675: E/AndroidRuntime(1847): at android.os.HandlerThread.run(HandlerThread.java:60)
从我对android的小知识看起来这个消息没有任何数据并且崩溃应用程序...我已经检查了从服务器发送的消息到谷歌gcm服务器看起来不错...我的问题是如何判断airpush是否正在消耗数据..
我可能会离开...有人指出我的写作方向......
谢谢罗杰......
答案 0 :(得分:0)
好吧,似乎走开了一点点让我理解并阅读了控制台数据....它说这是记录器创造问题......所以没关系......