[NEW PLUGIN] OneSignal Push Notifications PRO plugin

HI,

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.

Hi @pierre2

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.

this can help to understand:

1 Like

Hi John,

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.

1 Like

I understand. I can also use OneSignal on my platform. To make it work on iOS or Android, it’s a bit tricky as explained above (using a p12 file).

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.

1 Like

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.

3 Likes

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.

GREAT NEWS!!!

After 0 interest from developers here, I had to dig in myself and I am NOT a coder.
After … almost 12 hours, I finally figured it out :slight_smile: :tada:

It has now been fixed and released version 2.0. Be sure to update!

Also, be sure to set it up for browser like this:

I will return with a FULL tutorial in the next couple of days, from start to finish.

Enjoy it!

3 Likes

Unfortunately, @Bubble support said it will take 1-2 weeks for the plugin update to be reviewed.

1 Like

UPDATE!

I’ve canceled the BIG update to 2.0 and made it as a patch.
It’s now instantly available as 1.0.1

Tutorial will follow this weekend.

I’m sorry for:

  1. the delay, I was testing on macOS BETA BigSUR and I had a lot of issues. Had to make space and install Catalina.
  2. 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!

3 Likes

I still see no auto prompt… :frowning:

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.

1 Like

Worked after clearing cache and coockies. Is there a way to trigger the prompt using bubble?

Cool!

It will be, in a future update.

These are the errors a user is getting. No ad blocker. User is logged in (because current user logged in gives yes). Its not working…

Schermafbeelding 2020-08-27 om 18.16.08 Schermafbeelding 2020-08-27 om 18.09.50

can you share your bubble apps’ editor please and specify which user is this, what workflows triggers which action that involves OSPRO plugin?