Hi there,
I am trying to use OneSignal in my game. This is my first attempt of using push notifications in a game.
I’ve followed all the tutorials in their website and now I am running their example. The first step seems to be working fine, when I run my example it adds a user to my OneSignal CMS but the user is not subscribed. I can’t find out what this subscribe even is, because OneSignal does not have a tutorial about their CMS (which is quite slow btw) apparently without its value being true I can’t send the push notifications, when I look into my segments it’s empty.
How do I subscribe my users? Is it done through the code? When I call Init in the start of my code, I am not changing the “autoRegister” parameter, so it should be by default true. Is register different than subscribe?
Thanks in advance.
Cai
Hello,
Most likely your device is not subscribing as we are not getting a Google Registration ID from your device. Make sure your signed into a Google account in your system settings on the device.
You can call OneSignal.SetLogLevel() before Init to add debugging alert boxes to see errors.
OneSignal.SetLogLevel(OneSignal.LOG_LEVEL.INFO, OneSignal.LOG_LEVEL.INFO);
If the alert boxes are not providing any useful information can you attach a full LogCat of the app starting on your device? You can get a logcat by running ddms
or adb logcat
from a terminal.
Thanks.
Hi, can I have the useful tutorial links of OneSignal please? I have searched, but didn’t get any useful tutorial. This is my first attempt too of using Push Notification. Kindly help me out…
There’s good documentation on how to set up OneSignal with Unity on this page: http://documentation.onesignal.com/v2.0/docs/using-onesignal-in-your-unity-sdk-app. You can also use the chat-based support system if you have any questions (I help work on OneSignal – we try to respond to most questions within a couple of hours).