WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
09/27/13 12:50 PM (12 years ago)

GCM - push on Android 3.0 self hosted

Is there a problem with push on 3.0 self hosted? My app just crashes when trying to register. I remember mention of push being broken but can't find anywhere that says it got fixed. Tim
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
09/27/13 01:51 PM (12 years ago)
Push is also not working for me for 2.2 apps.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
09/27/13 06:57 PM (12 years ago)
Yep - and David is working on it.
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
09/27/13 07:01 PM (12 years ago)
Roger
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
10/11/13 09:29 AM (12 years ago)
is push working now and if so is it correct to assume once I have inserted the project number for android and compiled that I should see my device registered in my control panel? Trying to register device in control panel? Android project for now. My device indicates that it is registered for push but my control panel does not recognize it. Any thoughts Joe
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
10/11/13 12:21 PM (12 years ago)
Be sure the setting in your core settings to enable push is set yes
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
10/11/13 12:26 PM (12 years ago)
ok I will check
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
10/11/13 08:37 PM (12 years ago)
I don't think it's working correctly yet. I haven't heard anything indicating it's been fixed. David's had his hands full with the new iOS core and the automated plugin market.
 
Rachelle-Joanne
Aspiring developer
Profile
Posts: 65
Reg: Jan 15, 2013
Lagos
650
like
12/26/13 03:34 AM (12 years ago)
Hello, I am trying to set up fpr push notifications on BT 3.0, i have add my project number in the manifest.xml but i keep getting this error and it crashes my app BT_activity_host:handleReportToCloudResults appLastModifiedOnServer (value on server): Thu, 26 Dec 2013 09:18:32 -0800 12-26 11:27:29.143: W/ZZ(610): BT_fileManager: saveTextFileToCache: appModified.txt 12-26 11:27:30.313: W/ZZ(610): BT_activity_host:registerForPush 12-26 11:27:30.313: W/ZZ(610): BT_fileManager:deleteFile rejectedpush.txt 12-26 11:27:30.325: W/ZZ(610): BT_activity_host:device is NOT registered with GCM (Google Cloud Messaging) 12-26 11:27:30.343: W/dalvikvm(610): Exception Ljava/lang/ClassCastException; thrown while initializing Lcom/recipesafricandishestwo/BT_gcmConfig; 12-26 11:27:30.363: D/AndroidRuntime(610): Shutting down VM 12-26 11:27:30.363: W/dalvikvm(610): threadid=1: thread exiting with uncaught exception (group=0x409c01f8) 12-26 11:27:30.403: E/AndroidRuntime(610): FATAL EXCEPTION: main 12-26 11:27:30.403: E/AndroidRuntime(610): java.lang.ExceptionInInitializerError 12-26 11:27:30.403: E/AndroidRuntime(610): at com.recipesafricandishestwo.BT_activity_host.registerForPush(BT_activity_host.java:749) 12-26 11:27:30.403: E/AndroidRuntime(610): at com.recipesafricandishestwo.BT_activity_host$6.onClick(BT_activity_host.java:712) 12-26 11:27:30.403: E/AndroidRuntime(610): at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:166) 12-26 11:27:30.403: E/AndroidRuntime(610): at android.os.Handler.dispatchMessage(Handler.java:99) 12-26 11:27:30.403: E/AndroidRuntime(610): at android.os.Looper.loop(Looper.java:137) 12-26 11:27:30.403: E/AndroidRuntime(610): at android.app.ActivityThread.main(ActivityThread.java:4424) 12-26 11:27:30.403: E/AndroidRuntime(610): at java.lang.reflect.Method.invokeNative(Native Method) 12-26 11:27:30.403: E/AndroidRuntime(610): at java.lang.reflect.Method.invoke(Method.java:511) 12-26 11:27:30.403: E/AndroidRuntime(610): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 12-26 11:27:30.403: E/AndroidRuntime(610): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 12-26 11:27:30.403: E/AndroidRuntime(610): at dalvik.system.NativeStart.main(Native Method) 12-26 11:27:30.403: E/AndroidRuntime(610): Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String 12-26 11:27:30.403: E/AndroidRuntime(610): at com.recipesafricandishestwo.BT_gcmConfig.getGCMProjectNumber(BT_gcmConfig.java:69) 12-26 11:27:30.403: E/AndroidRuntime(610): at com.recipesafricandishestwo.BT_gcmConfig.<clinit>(BT_gcmConfig.java:47) 12-26 11:27:30.403: E/AndroidRuntime(610): ... 11 more 12-26 11:27:31.014: I/dalvikvm(610): threadid=3: reacting to signal 3 12-26 11:27:31.064: I/dalvikvm(610): Wrote stack traces to '/data/anr/traces.txt' 12-26 11:27:44.764: I/Process(610): Sending signal. PID: 610 SIG: 9 Please can any one help
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
12/27/13 08:56 AM (12 years ago)
@Rachelle-Joanne PM me and I will send you a modified gcm but I can tell you I never got push working but this gcm will stop the android crash issue I moved on to parse.com for ios but have not installed on android yet. Joe Sprott Bodacious Media
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.