Discussion Forums  >  Crashes, Memory Warnings

Replies: 12    Views: 561

Lex
Aspiring developer
Profile
Posts: 29
Reg: Dec 25, 2013
Ecuador
2,840
01/30/14 01:41 PM (3 years ago)

Push Notification is stopping my APP when message arrive

Hi, i have a self hosted panel and i have push notification almost ready.. the devices are being registered correctly but, if i send a push message from my panel when the notification arrives i have one of this problems:

1. If the application is closed, the device only vibrates and sounds, but can not see any message pop up, nothing.

2. - When the application is open, you can see a message but the app closes immediately.

Log Cat show me this:

01-30 14:43:44.696: E/AndroidRuntime(9693): FATAL EXCEPTION: IntentService[GCMIntentService-1017864529338-1]
01-30 14:43:44.696: E/AndroidRuntime(9693): java.lang.IllegalMonitorStateException: object not locked by thread before notify()
01-30 14:43:44.696: E/AndroidRuntime(9693): at java.lang.Object.notify(Native Method)
01-30 14:43:44.696: E/AndroidRuntime(9693): at com.xxxxxx.BT_gcmIntentService.generateNotification(BT_gcmIntentService.java:152)
01-30 14:43:44.696: E/AndroidRuntime(9693): at com.xxxxxx.BT_gcmIntentService.onMessage(BT_gcmIntentService.java:89)
01-30 14:43:44.696: E/AndroidRuntime(9693): at com.google.android.gcm.GCMBaseIntentService.onHandleIntent(GCMBaseIntentService.java:223)
01-30 14:43:44.696: E/AndroidRuntime(9693): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
01-30 14:43:44.696: E/AndroidRuntime(9693): at android.os.Handler.dispatchMessage(Handler.java:99)
01-30 14:43:44.696: E/AndroidRuntime(9693): at android.os.Looper.loop(Looper.java:137)
01-30 14:43:44.696: E/AndroidRuntime(9693): at android.os.HandlerThread.run(HandlerThread.java:61)

I really need your help, thanks for your answers...
 
feraco
Aspiring developer
Profile
Posts: 699
Reg: Jan 23, 2012
nyc
14,990
like
01/30/14 02:05 PM (3 years ago)
Is it BT push?
 
Lex
Aspiring developer
Profile
Posts: 29
Reg: Dec 25, 2013
Ecuador
2,840
like
01/30/14 02:34 PM (3 years ago)
yeah.. is BT Push (From Self-Hosted Panel)
 
feraco
Aspiring developer
Profile
Posts: 699
Reg: Jan 23, 2012
nyc
14,990
like
01/30/14 02:38 PM (3 years ago)
Did you follow naraj how to doc step by step because sometimes it's a little typo that causes stuff like this. Is it android 2.0 or 3.0
 
Lex
Aspiring developer
Profile
Posts: 29
Reg: Dec 25, 2013
Ecuador
2,840
like
01/30/14 04:17 PM (3 years ago)
Hi feraco, its 3.0, about naraj i don't know.. but push notifications are working.. i mean.. devices are beign registered normally... the problem is with message, when it arrives the app closed... or, if apps is already closed then the devices just vibrate and make a sound.. but nothing more..
 
feraco
Aspiring developer
Profile
Posts: 699
Reg: Jan 23, 2012
nyc
14,990
like
01/31/14 05:17 AM (3 years ago)
Im not too familiar with installing bt push for 3.0 but i know that this thread shows you how to do it with scringo- https://www.buzztouch.com/forum/thread.php?tid=3D1785DE0847EBF6B271E14&fid=F006D74B653CA9FFE3CB28E&sortColumn=FT.id&sortUpDown=DESC&currentPage=1

and if you would like to try it with parse i can send you a how to-
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
01/31/14 11:32 AM (3 years ago)
I had the same problem - I dont think BT push works - well I've yet to find anyone who has it working with version 3

I tried to get parse push working but just ran into lots of errors , so gave up on that too
 
Lex
Aspiring developer
Profile
Posts: 29
Reg: Dec 25, 2013
Ecuador
2,840
like
02/10/14 09:17 AM (3 years ago)
i see... thanks for all your answers.. but it's posible to have son "OFICIAL" answer from buzztouch about this things?.. beacuse i have problems with Push Notifications and Live Mode updates... both are not working with my self-hosted panel...
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
02/12/14 06:54 AM (3 years ago)
I think there is a known bug but havent heard anymore yet on the progress
 
Masons App Design
Aspiring developer
Profile
Posts: 206
Reg: Aug 06, 2013
Andrews, TX
12,660
like
03/16/14 02:02 PM (3 years ago)
I am having the same issues. Once the notification comes through the app stops. I am also BT hosted not self hosted.
 
Lex
Aspiring developer
Profile
Posts: 29
Reg: Dec 25, 2013
Ecuador
2,840
like
03/27/14 01:53 PM (3 years ago)
When I started with buzztouch was excited, but now I'm disappointed, I could never finish my first and only application. While almost all works, there are some bugs and no news from the buzztouch team .
 
Masons App Design
Aspiring developer
Profile
Posts: 206
Reg: Aug 06, 2013
Andrews, TX
12,660
like
03/27/14 02:21 PM (3 years ago)
http://www.buzztouch.com/forum/thread.php?tid=56643342D49BA08BDEEB1EF

Check this thread out. The suggestion Patrick have me worked great.
 
Lex
Aspiring developer
Profile
Posts: 29
Reg: Dec 25, 2013
Ecuador
2,840
like
03/31/14 02:15 PM (3 years ago)
Hi.. i followed the http://www.buzztouch.com/forum/thread.php?tid=56643342D49BA08BDEEB1EF insructions but now the devices is registerd. but when i send a notification nothing happend! Logcat don't report anything..the phone don't sound, vibrate or show nothing.. maybe some idea?
 

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.