OneSignal FREE plugin for FREE and UNLIMITED Push Notifications 📱

Excellent work putting this together @mvandrei
I bet many bubblers have benefited from this post and your plugin.

The code provided for the web didn’t work for me, Although, I manged to get it to work using the below code:

OneSignal.isPushNotificationsEnabled(function(isEnabled) {
if (isEnabled) {
// user has subscribed
OneSignal.getUserId( function(userId) {
console.log('player_id of the subscribed user is : ’ + userId);
// Make a POST call to your server with the user ID
bubble_fn_1(userId)
});
}
});