I recently subscribed to the plugin after creating a mobile application (with Jasonelle) for Android and adding OneSignal following these instructions. When I emulate the application on my phone with Android Studio, One Signal detects my device and assigns it a player id (I can see it in app.onesignal.com and even send push notifications from the same platform).
However when I try to get the player id from the plugin using “Get Player Id A OneSignal Pro” here is the error message returned :
Did I misconfigure OneSignal on Android Studio? Or is it due to the plugin? I think I configured it well also by filling all the fields necessary for its use.
OneSignal cannot work as a native application as you are trying to make it work. You need to enable OneSignal Xcode with OneSignal tools. I haven’t tried yet, but it requires a little bit of analysis.
Thanks for the quick answer, but I’m currently developing a solution for Android. As I explained I can already send notifications through the OneSignal platform, what I can’t do is get the player id from bubble and associate it with the current user.
You need a ‘native’ app that has the Onesignal’s SDK already implmented. If you want to implement it yourself, it might be tricker. Unfortunately I don’t provide support for Onesignal SDK. The plugin works with already implemented (and correctly implemented) SDK.
Hi,
Thanks for your answers, finally I don’t use this plugin anymore. I managed to retrieve the player_id using Jasonelle’s native functions (thanks @JohnMark , the thread and this post was very useful), all I had to do was make a few changes to one native function and you can simply trigger a post request sending to Bubble the player_id and the User Bubble’s unique id.
Hi I am wondering if anyone has gotten the link part of this plugin to work? I put in the url to my app but every time I click the notification my app crashes. When I use the tester from Onesignal.com and click on that push notification it opens my app and url just fine.
the plugin has nothing to do with the way your webview wrapper app is handling URLs.
From my experience with SuperView (that I have no affiliation with I only used it myself and recommended as an option) is to add a blank space before the URL.
Thanks so much for the response and support. It ended up being a really weird problem. The header had to specifically specify application/json; charset=utf-8 in the api call. I created an updated plugin for the web wrapper I was using. Thanks again for all of your work on OneSignal integration.
Hey, I’m facing troubles with configuring the plugin. Unable to retrieve the playerid. I would appreciate any help with this.
I configured it as mentioned in the video here: https://www.youtube.com/watch?v=V3cFL60S_qI.
Also set up the onesignal SDK in our webview wrapper android app. However,not able to retrieve the playerid.
the delay, I was testing on macOS BETA BigSUR and I had a lot of issues. Had to make space and install Catalina.
my bad English, I was rushing into recording it as fast as possible.
As promised, here is the video tutorial for web push notification and plugin configuration.
For mobile you have to follow your wrapper’s instructions. If needed, I will make one for Superview (the one that I use).
Tutorial
Part 1:
Part2:
Part3:
Part 4 (final):
I hope you enjoyed it! Best of luck with your apps!
Have you configured EVERYTHING? Did you follow every tutorial? Have you setup safari too?
I asume you’re talking about computer browser prompt.
Did you clear cookies and cache? It doesn’t work if you previously tried.