Discussion Forums  >  Crashes, Memory Warnings

Replies: 8    Views: 287

Imagenparaweb
Aspiring developer
Profile
Posts: 121
Reg: Dec 13, 2011
Cordoba
1,210
05/30/13 09:57 AM (10 years ago)

GCM settings - Push Notifications [SOLVED]

Hi everyone, I created a new GCM project and a new API key. Also enabled Google Cloud Messaging for Android service. After that, I put the project number on my BT_gcmConfig.java file, and also I entered the new details in BT control panel. Then, 'Clean' and 'Refresh' the project on Eclipse and tried it on my phone. The popup window appers to accept push notifications. I hit 'yes' and the app crash. This is what I get: <a href="http://postimg.org/image/6e4wc94ff/" target="_blank" rel="nofollow">http://postimg.org/image/6e4wc94ff/</a> Also, here u have the logCat: <a href="http://postimg.org/image/svrmu17yl/" target="_blank" rel="nofollow">http://postimg.org/image/svrmu17yl/</a> Does anyone solved an error like this? Im using BT hosting. Thanks my friends.
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
05/31/13 04:23 AM (10 years ago)
Hello Imagenparaweb, I've had a similar issue for a whole week! It was driving me crazy - I had an app that used to work one month a go with GCM and when I went back to it, it no longer registers for push. After a lot of digging and posting to the forums I've found that the issue for me was - ADT update 22 for eclipse. You are getting an "undefined class error". Basically the new ADT plugin is not automatically including all the necessary files and libraries. For me the solution was to make sure the 'Android Private Libraries' and 'Google Api's' were checked in the project's library properties. https://www.evernote.com/shard/s2/sh/d3989545-54e5-4f57-9472-b654ba69eb6e/d27e4e6027f693f36a03fc3fe0d75ddd Please let me know if this helps you! Cheers Darrel
 
Imagenparaweb
Aspiring developer
Profile
Posts: 121
Reg: Dec 13, 2011
Cordoba
1,210
like
05/31/13 05:12 AM (10 years ago)
OMG, you're awesome! I've been going crazy because of this sh.. jaja Thanks a lot Darrel! It is just the solution I was needing!!
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
05/31/13 05:33 AM (10 years ago)
Awesome ... the BT community has helped me heaps! Happy to help someone else out :)
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
05/31/13 09:14 AM (10 years ago)
Excellent find...thanks, @ictguy!
 
Black Light
Code is Art
Profile
Posts: 15
Reg: Sep 10, 2012
Fairfax
4,300
like
06/11/13 04:51 PM (10 years ago)
This post saved my time :) Thanks @ictguy
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
06/11/13 04:53 PM (10 years ago)
Glad I could help! Hope your projects are going well!
 
indianwolf
Code is Art
Profile
Posts: 1
Reg: Jul 03, 2013
paris
10
like
07/03/13 05:37 AM (10 years ago)
Hi my question might be in appropriate for the above problem but i need answer for this. Is it possible to pop up or activate an app when the device receives a notification from the server? what i am asking is rather a small icon in the notification bar when the device receives message from GCM it should open the app. can it be done?
 
Imagenparaweb
Aspiring developer
Profile
Posts: 121
Reg: Dec 13, 2011
Cordoba
1,210
like
12/30/14 05:37 AM (9 years ago)
I have issues one more time with GCM.. 1. I've already create a Google Developer account, create a project and save its number. 2. Turned the Google Cloud Messaging for Android toggle to ON. 3. Created a new server key and save it. 4. In Buzztouch, I've already enabled Push Notifications under Core settings. 5. Also, I've filled the GCM form on Push Notifications page with saved project number and API key 6. In Eclipse, I've added the project number into manifest.xml file. I think I've done all steps, but on my phone: 1. Open the app. 2. The push notifications message prompts. 3. I accept the messages. 4. The app crashs and closes with a message like "The app has stoped..." Does anyone have the same problem? Is anyone using Buzzt Push Notif? I'm using Eclipse 23.0.2 / my phone runs Android 4.0.1 Help please! Thanks!!
 

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.