woronczak
I hate code!
Profile
Posts: 9
Reg: Feb 29, 2012
Melbourne, Aust...
90
09/30/15 03:03 PM (9 years ago)

Push Notifications on Android

Hi guys. Has anyone actually got push notifications working properly on Android? I have a self-hosted server (and using eclipse; Android studio doesn't seem to work too well for self hosted) and with the default settings on an app which I downloaded probably a year ago (was still BT3 I think), I can register the devices, but when I try to send messages through the self hosted control panel (design mode, which is what devices are set to), it appears to work, but I do not receive the message (despite accepting the push notification option and the device appearing in the registered devices tab). When I downloaded a more recent version of my app from my own self-hosted server and compiled that, it asks if I want to accept push notifications and then if I accept, it crashes (the app otherwise runs fine if you decline push notifications) I have used the guide found here http://www.buzztouch.com/forum/thread.php?tid=56643342D49BA08BDEEB1EF which may be related to apps from the Buzztouch website (not hosted) and the new code stops the app crashing, allows the device to accept push notifications, I can see that it is registered, but still doesn't receive the notification. I know that my Google APIs are setup and working properly as I can send push notifications using the same settings using another app making software. Has anyone got push notifications working on Android self hosted and can share how they did it? Cheers Matt
 
Rachelle-Joanne
Aspiring developer
Profile
Posts: 65
Reg: Jan 15, 2013
Lagos
650
like
09/30/15 03:48 PM (9 years ago)
Hello, I use BT self hosted and Android Studio works quite well with it, here is a video to help setup BT projects on Android Studio. Also follow the instructions on the PDF with your project download. here is the link https://www.youtube.com/watch?v=LsLTfaajeqg Then in answer to your question, I have setup push notification but I did not use BT but used Parse and here is a step by step tutorial on how to do that, just that this is with android studio. https://docs.google.com/document/d/14E7osRcXTPEroFqLudcUk1v76FjylSoX3h_tqPHNh5c/edit?usp=sharing Hope this helps
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/01/15 06:25 AM (9 years ago)
Hi i use self hosted and eclipse and use push on Android through that, had few probs to start with but after following this guide got it to work, 1 thing i did do that helped, before trying push on the android(in store) i deleted all the devices in the push list, this helped as well, you need to change some of the code in android, but after doing this my Push worked great. http://www.buzztouch.com/forum/thread.php?tid=56643342D49BA08BDEEB1EF
 
woronczak
I hate code!
Profile
Posts: 9
Reg: Feb 29, 2012
Melbourne, Aust...
90
like
10/01/15 06:04 PM (9 years ago)
Rachelle-Joanne - thanks for that. I might try Parse @FunkyMonkey - that is the same guide that I have tried (to no avail; have tried and tried again). I will try deleting the registered devices and see if that helps.
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/02/15 02:49 AM (9 years ago)
deleting the devices in the list got mine working, this was after the device was saying it was registered for push, as long as the device is saying that, you shouldn't be far off.
 

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.