Onesignal Push Notification
Open in App
Using this extension you can received and send onesignal notification in your app. you can use this extension in kodular , appInventor or other platform.
This extension is support in latest android devices. in this extension have lots of blocks to customize your notification. check latest blocks in this post. and also you can download demo app to check this extension how is work.
Note : If you are using firebase google auth component in your app then unfortunately this extension is not compatible this this, because of issue in library.
Download Demo App



Block Image :

Add registered component in your project and use your current registered email address which one you have using for creating your apps and registered with deephost app. if you are using different email, then don’t worry you can easily update your email in deephost app. make sure that after update email you have again downloaded the extension.

Add post notification permission request block for latest android devices.

Setup your App ID and Reset KEY for connecting your app with onesignal.
Note : For security reasons avoid to use Reset Key in your app, if you don’t want to send notifications directly from app. otherwise maybe your api key will expose. by the way, i am making a different extension to solve this issue that is API Key Protection. This extension can protect your api key in your app.
Let’s back to the next state, after that you need to setup Initialize SDK block.

After Initialize SDK you will get the user subscribe status and user Id. for this process may be it will take few seconds it’s depend on network response. Using this user Id you can send targeted notifications to the specific user.

When user has open the notification you will get all this information in your app. like: notification Id, title , body and etc.

If you have set foreground handler true then you will not received notification during app open. by default this option is false when you have set true then you will got direct event like: notification Id, title , body and etc.
That’s all the setup for receiving notification. after that we will see how to send notification from app.


You can use this two different way to send notification to the all subscribed users. use the first block to send only simple title and message notification. and using second block you can send title , message , image , link and also schedule notification delivered time.


With help of this two blocks you can send notification to the specific users. first one is for single user id and another one is for multiple user ids.

Using tags you can filter your app user to your specific category of users.

You can make multiple list of filters. and you can add some logic inside the filter to compare the value.

With help of this block you can send notification to the filtered users.

Using this block you can delete your existing tags.

Using this block you can get your all existing tags as a list from.
I hope you like this extension, we have tested this extension in my different devices you can also test in your device. if you have found any error then you can inform me we will try to fixed any type of issue.
Demo App Blocks :

Registered Your Email with this Extension :
Now you need to register your email with this extension for creating apps. make sure that the email address is the same as you are using for building apps. this extension will automatically detect the genuine extension user.
you need flow these steps to register your extension.
after importing, this extension into your project you need to add one more component to your project which is a new Registered Component this component will initialize the registered library.
Registered Component :
Download Extension


Note: this component will work for all extensions. without this component, required extensions will not work.
after you will enter your email in this extension register email blocks in initialize or designer session.

That’s all the registered process of this extension. and if you want to update or change your email then you can easily update your email in deephost app. after the update email, you can download again your extension and use it in your project. if you have any doubts then you can reach me by email or WhatsApp.