@tifanirose1611 I did not use that plugin, I don’t think it existed when I made it. The Javascript tutorial I put up above is just to store the player_id (the unique identifier for that user so I can send them push notifications).
To actually send the push notifications, I setup the API manually in the API Connector plugin by Bubble. It’s actually pretty easy. OneSignal docs here: REST API Overview
Here’s a screenshot to try to help you set that up, use it in conjunction with those docs:
I only put it on every page so that I can capture that player_id no matter what page they are on. I don’t think it should ever change unless they change devices so it’s overkill to be safe. You could probably just put it on one page, whatever page they hit when they first login, and you’d be good.
I run it every time it doesn’t match because when they get a new phone it’ll update.
In my example, GoNative is triggering it and then I’m using the Javascript element to capture the data GoNative is sending - the player_id.
I have followed all your steps, and it seems like for the first time ever I have managed to send push notifications to Android phones using GoNative.io free version wrapper.
But, how do you set up Android notifications for Android 8+? I can’t seem to make it work, no notifications appeared on that Android version. Android version lower than 8 works fine.
@josh4 - followed all the steps and it seemed to be working fine. But, for some reason, the gonative javascript is not pulling the player id for ios devices. I can see the player id in Onesginal for ios device it just is not getting into my bubble database. Android works fine. Do you have any thoughts on why it might not work for iphone devices?