Pushbot Recieving Push Notifications Crashes App When Its Not Running
I'm a beginner to Java and android programming and I have followed the tutorials for PushBot to creating a working app. However the app crashes when receiving a push notification i
Solution 1:
Check the video tutorial on youtube (http://www.youtube.com/watch?v=faop6vBBe3E)
I'll quote here too:
Please make sure you've copied PushBots.jar file into libraries folder of your android project. And also make sure you extended Application Class, and initialized PushBots in its onCreate method, check out steps 6,7 in this link for more details https://pushbots.com/developer/tutorial#/android/existing/step/4
step 6,7
here's a sample code:
import com.pushbots.push.Pushbots;
import android.app.Application;
publicclassMyApplicationextendsApplication {
@OverridepublicvoidonCreate() { >super.onCreate();
Pushbots.init(this, "",""); }
}
Solution 2:
Seems like Pushbots developer offers you a new way that is equal to configure initilization.Please check out that side pushbotdeveloping it will give route you step by step.I had solved my problem via that way.
Post a Comment for "Pushbot Recieving Push Notifications Crashes App When Its Not Running"