- Home /
Game Thrive (One Signal) causes game to crash when calling init method.
I have just implemended the Game Thrive plugin, and am testing it on android. When the game calls GameThrive.Init(), it crashes. I know this is the reason because I have tried building the game with this line commented out and had no issues. Even when I ran the example scene provided by them the same problem occurred. Has anyone else run into this problem?
Help here will be greatly appreciated!
Answer by JKasten · Apr 16, 2015 at 09:36 PM
Hello,
This is Josh from OneSignal. We have re-branded to OneSignal and we recommend switching to our new SDK and OneSignal class when you can.
To debug the crash your seeing can you get a full LogCat for the app crashing on your Android device? To get it you can run ddms
or adb logcat
from a terminal. You can send it as well as your APK to support@onesignal.com and we can take a look.
Thanks.
Should i just get the OneSignal unity package ins$$anonymous$$d of the GameThrive one? Or do I need the ecoipse SD$$anonymous$$ in addition?
You can remove the current GameThrive plugin by deleting the GameThrive folder and the GameThriveSD$$anonymous$$.jar in the Android folder. Then import the new OneSignal package and follow the instructions located here: http://documentation.onesignal.com/v2.0/docs/installing-the-onesignal-sdk
Also remove the GameThrive references in your Android$$anonymous$$anifest.xml
Ok I have done this and the game no longer crashes! I can see on the users section of One Signal that a user has been registered for my device. The only thing is now when I try to send a push notification to myself it tells me something went wrong and I need to check the logs. I assume this could be debugged using logcat?
never$$anonymous$$d that last comment it is working now. $$anonymous$$aybe it just takes some time after a user has been registered.