0

使用 pushwoosh android appcelerator 模块时,我不断收到“无法注册推送通知”。(在 iOS 上工作得很好!)

这是我的踪迹

[INFO][ActivityManager(   60)] Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.omgmediagroup.attProAm/.ComOmgmediagroupAttproamActivity }
[INFO][ActivityManager(   60)] Start proc com.omgmediagroup.attProAm for activity com.omgmediagroup.attProAm/.ComOmgmediagroupAttproamActivity: pid=255 uid=10041 gids={3003, 1015}
[INFO][TiApplication(  255)] (main) [0,0] checkpoint, app created.
[DEBUG][dalvikvm(  255)] GC_FOR_MALLOC freed 2660 objects / 309088 bytes in 63ms
[INFO][TiApplication(  255)] (main) [494,494] Titanium 2.1.4 (2012/11/09 12:47 51f2c64)
[DEBUG][dalvikvm(  255)] GC_FOR_MALLOC freed 2402 objects / 434296 bytes in 64ms
[INFO][TiApplication(  255)] (main) [368,862] Titanium Javascript runtime: v8
[DEBUG][dalvikvm(  255)] Trying to load lib /data/data/com.omgmediagroup.attProAm/lib/libstlport_shared.so 0x44ede650
[DEBUG][dalvikvm(  255)] Added shared lib /data/data/com.omgmediagroup.attProAm/lib/libstlport_shared.so 0x44ede650
[DEBUG][dalvikvm(  255)] No JNI_OnLoad found in /data/data/com.omgmediagroup.attProAm/lib/libstlport_shared.so 0x44ede650, skipping init
[DEBUG][dalvikvm(  255)] Trying to load lib /data/data/com.omgmediagroup.attProAm/lib/libkroll-v8.so 0x44ede650
[DEBUG][PushnotificationsModule(  255)] (main) [69,931] inside onAppCreate
[INFO][TiRootActivity(  255)] (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
[DEBUG][dalvikvm(  255)] Added shared lib /data/data/com.omgmediagroup.attProAm/lib/libkroll-v8.so 0x44ede650
[ERROR][TiApplication(  255)] (KrollRuntimeThread) [1615,1615] APP PROXY: ti.modules.titanium.app.AppModule@44f06eb8
[WARN][V8Object(  255)] Runtime disposed, cannot set property 'userAgent'
[DEBUG][dalvikvm(  255)] Trying to load lib /data/data/com.omgmediagroup.attProAm/lib/libcom.arellomobie.push.so 0x44ede650
[DEBUG][dalvikvm(  255)] Added shared lib /data/data/com.omgmediagroup.attProAm/lib/libcom.arellomobie.push.so 0x44ede650
[DEBUG][dalvikvm(  255)] No JNI_OnLoad found in /data/data/com.omgmediagroup.attProAm/lib/libcom.arellomobie.push.so 0x44ede650, skipping init
[DEBUG][dalvikvm(  255)] Trying to load lib /data/data/com.omgmediagroup.attProAm/lib/libti.admob.so 0x44ede650
[DEBUG][dalvikvm(  255)] Added shared lib /data/data/com.omgmediagroup.attProAm/lib/libti.admob.so 0x44ede650
[DEBUG][dalvikvm(  255)] No JNI_OnLoad found in /data/data/com.omgmediagroup.attProAm/lib/libti.admob.so 0x44ede650, skipping init
[INFO][ActivityManager(   60)] Starting activity: Intent { cmp=com.omgmediagroup.attProAm/ti.modules.titanium.ui.TiTabActivity (has extras) }
[INFO][TiAPI   (  255)] module is => [object Object]
[DEBUG][dalvikvm(  255)] GC_FOR_MALLOC freed 4127 objects / 477808 bytes in 68ms
[WARN][System.err(  255)] java.lang.IllegalStateException: No receiver for package com.omgmediagroup.attProAm
[WARN][System.err(  255)]   at com.google.android.gcm.GCMRegistrar.checkManifest(GCMRegistrar.java:143)
[WARN][System.err(  255)]   at com.arellomobile.android.push.PushManager.onStartup(PushManager.java:102)
[WARN][System.err(  255)]   at com.arellomobile.android.push.PushManager.onStartup(PushManager.java:87)
[WARN][System.err(  255)]   at com.arellomobile.push.PushnotificationsModule.pushNotificationsRegister(PushnotificationsModule.java:79)
[WARN][System.err(  255)]   at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)
[WARN][System.err(  255)]   at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:146)
[WARN][System.err(  255)]   at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:287)
[WARN][System.err(  255)]   at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:172)
[WARN][System.err(  255)]   at android.os.Handler.dispatchMessage(Handler.java:95)
[WARN][System.err(  255)]   at android.os.Looper.loop(Looper.java:123)
[WARN][System.err(  255)]   at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109)
[ERROR][TiAPI   (  255)] Error during registration: Failed to register for push notifications

仍然是新的,所以我不太明白这个日志告诉我什么......显然模块和编译器存在某种冲突(我认为?)

我已经按照教程进行了 T 并且似乎找不到有关该错误的更多信息。有没有人在野外获得 pushwoosh android 模块以供 appcelerator 工作?将不胜感激任何提示。

4

1 回答 1

0

令人尴尬的是,platforms/android 目录下的 AndroidManifest.xml 文件中出现了用户错误。

然而,说明(http://www.pushwoosh.com/programming-push-notification/appcelerator-titanium-android-push-notification/)有些模糊 - 而不是将摘录放在标签下确保你把它在现有标签内。

前任:

<application>
snippet here
</application>
于 2012-12-07T23:55:10.243 回答