Discussion Forums  >  Self Hosted Control Panels

Replies: 20    Views: 970

ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
05/25/13 02:40 AM (12 years ago)

GCM errors - Android push on self hosted

Hi All, I've setup an app about a month ago and got it all working using BT self-hosted push on Android. The simulator registered, I sent a push - all good :) I've come back to the project now to complete it. I downloaded the fresh source code to include some newly purchased plugins, except now the app just crashes when I try to register for push. The logcat is here: http://pastebin.com/Hcads9LY I thought it may have been the plugins but I went back to the source code I had working and I am receiving the same errors, so I don't think that is the issue. So has anything changed with GCM and buzztouch? BTW I followed the recommended documentation ... http://www.buzztouch.com/files/howtos/HowToAndroidPushWithGCMForBuzzTouchPush.pdf and have edited the BT_gcmConfig file with the correct project id. Any thoughts would be appreciated!
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
05/25/13 03:26 AM (12 years ago)
A bit more digging and I can get the error to go away by using this advice in the project preferences: http://stackoverflow.com/questions/16596969/libraries-do-not-get-added-to-apk-anymore-after-upgrade-to-adt-22 But although the device says "registered" ... nothing happens on my control panel .... Log cat is here with website and api calls obscured: http://pastebin.com/fyDrA89G Again any hints, ideas would be helpful ...
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
05/25/13 04:17 AM (12 years ago)
That looks to be an error with a space in the device model name (htc_wwe-HTC Desire), it's been reported quite a lot on the forum, I thought it had been fixed... If you remove "&deviceModel=" from the url string, devices should show in your control panel.
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
05/25/13 04:33 AM (12 years ago)
Thanks Raveyd, At first I was using a "Nexus 7" and I thought the space might have been an issue from what I have read in other forum posts, so I switched over to the HTC Desire. I'll try again with the emulator and report back. I'd like to know if the self hosted download has been updated for this or not. I'll also try removing the "&deviceModel=" string and see what happens. Thanks for your input ... much appreciated! Cheers Darrel
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
05/25/13 04:50 AM (12 years ago)
No problem Darrel. I don't know if self hosted is updated??? I've sort of given up on gcm until there're more controls for sending them.
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
05/25/13 05:41 PM (12 years ago)
I removed the "&deviceModel=" string from the report to the cloud URL but it's still not working :( I'm logged on with a google account, project id set in the bt files etc etc but I still get this error: "internal error: retry receiver class not set yet" This is the whole logcat is here .... W/ZZ(479): Cr_menu_advanced:registerForPush W/ZZ(479): BT_fileManager:deleteFile rejectedpush.txt W/ZZ(479): Cr_menu_advanced:device is NOT registered with GCM (Google Cloud Messaging) D/GCMRegistrar(479): resetting backoff for com.irymplesth V/GCMRegistrar(479): Registering app com.irymplesth of senders 44684560811 V/GCMBroadcastReceiver(479): onReceive: com.google.android.c2dm.intent.REGISTRATION V/GCMBroadcastReceiver(479): GCM IntentService class: com.irymplesth.GCMIntentService V/GCMBaseIntentService(479): Acquiring wakelock V/GCMBaseIntentService(479): Intent service name: GCMIntentService-446884560811-1 W/ZZ(479): BT_gcmIntentService:CONSTRUCTOR Google GCM Project ID: 44684560811 E/GCMRegistrar(479): internal error: retry receiver class not set yet V/GCMRegistrar(479): Registering receiver D/GCMBaseIntentService(479): handleRegistration: registrationId = null, error = ACCOUNT_MISSING, unregistered = null D/GCMBaseIntentService(479): Registration error: ACCOUNT_MISSING W/ZZ(479): BT_gcmIntentService:onError notification: ACCOUNT_MISSING W/ZZ(479): Cr_menu_advanced:BroadcastReceiver baseHandlePushReceiver V/GCMBaseIntentService(479): Releasing wakelock
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
05/25/13 06:00 PM (12 years ago)
hmmm, there's a lot of google activity for "retry receiver class not set yet ", looks quite old though... maybe it'll shed some light? One suggested solution is to restart device! https://www.google.co.uk/#output=search&sclient=psy-ab&q=retry+receiver+class+not+set+yet&oq=retry+receiver+class+not+set+yet+&gs_l=hp.1.0.0i22i30l8.1786.1786.1.3961.1.1.0.0.0.0.130.130.0j1.1.0...0.0...1c..14.hp.-RItAnNWWCY&psj=1&bav=on.2,or.r_cp.r_qf.&bvm=bv.47008514,d.d2k&fp=9aa0e89edf737e51&biw=1024&bih=605
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
05/26/13 12:21 AM (12 years ago)
Thanks mate, Spent a couple of hours at least on "stack overflow" chasing that one! It does appear to be an old issue as the gcm.jar hasn't changed since last September (or something like that). Might have to go back using parse.com for the time being! Appreciate another pair of eyes taking a look :)
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
05/31/13 04:30 AM (12 years ago)
@raveyd I think I've solved the GCM registering problem on my self hosted. I've posted here .... and it definitely works now :) http://www.buzztouch.com/forum/thread.php?tid=D60DBC852A307E4AAB05014&fid=79A3D47D59E2A7B06AB0970&sortColumn=FT.id&sortUpDown=&currentPage=1 Now for the "Nexus 7" issue, I took out the &deviceModel= out the "Report to Cloud URL" but it didn't make any difference. It said it registered and nor errors in the logcat but the device isn't registered in the control panel. Where exactly can I take out the device model string? Does it need to come out of the BT_gcmServerUtils.java files? TIA Cheers Darrel
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
05/31/13 12:08 PM (12 years ago)
Hi Darrel, remove it from the Push notification settings url in the 'core' tab.
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
05/31/13 05:19 PM (12 years ago)
Looking around red faced, embarrassed ;) Hmmm ... I didn't see that staring me right int the face LOL!!!! Thanks @raveyd
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
06/01/13 03:45 AM (12 years ago)
hehe, that's my usual trick :)
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
07/19/13 12:59 PM (12 years ago)
xtify is great for push with a lot of options!
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
08/08/13 07:36 PM (12 years ago)
@Cookup I'm giving Xtify a go to see if I can get rich notifications going. I've had a look at your 1.5 guide and I've used trailman's guide here https://www.dropbox.com/s/43ap95pzy473ead/Xtify-Integration-Android-Eclipse-Buzztouch.pdf Has anyone got this going with Xtify since the BT downloads have included the BT GCM code? I've removed the BT Push code in the mainfest.xml, the BT_activity_Base.java, and also the app_delegate. My app runs but doesn't register with Xtify. Logcat says Xtify started ... ActivityThread(458): Publishing provider com.milduraps.XTIFY_PROVIDER: com.xtify.sdk.db.Provider Any ideas appreciated, I've spent hours on this and I'm at a dead end :(
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
08/09/13 05:21 AM (12 years ago)
Yes! I have been using xtify for a while now. Actually the guide they have on their website is better because its' a lot simpler now with GCM. I didnt remove anything from my manifest, just added their code in the right places.
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
08/09/13 09:33 PM (12 years ago)
Great, thanks for the tip! Did you change any of the BT code in the BT_activity_root or the app_delegate, apart from adding the xtify code?
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
08/10/13 07:13 AM (12 years ago)
Give me your email address and I will makw a sample bt app for you with xtify integrated.
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
08/10/13 04:58 PM (12 years ago)
Awesome ... PM sent :)
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
08/12/13 05:22 AM (12 years ago)
@cookup did you get the private message?
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
08/12/13 10:34 AM (12 years ago)
I did! I just been working long hours! ill get to it soon enough!
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
08/13/13 03:23 AM (12 years ago)
Thanks, I didn't mean to be pushy, it's just that sometimes people don't get the direct messages unless they are turned on .. I was only checking :) cheers Darrel
 

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.