0
好吧我從marknutter/GCM-科爾多瓦的GCM插件並安裝airpush SDK ... https://github.com/marknutter/GCM-Cordova科爾多瓦/ PhoneGap的GCM和Airpush
兩個工作Seperatly但是當結合我得到一個錯誤和應用程序崩潰.. 。logcat的信息...
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是否在手之前消費數據..
我可能是遙遠......有人點我在寫方向......
感謝羅傑....
不要使用airpush - 他們是一個騙局 - 他們從來沒有支付(對我和2我的朋友們),或者由於他們組成的各種原因而付出更少。(谷歌它) – Li3ro