1. Introduction
Extension name: Push Notification
Through this extension, you can receive and send notifications through OneSignal SDK. You will be able to receive messages even with the application closed.
Latest Version: 1.0
Released: 2020-07-15T07:46:00Z
Last Updated: 2020-07-15T07:46:00Z
2. Designer Properties
In this field, you will put the AppId of the onesignal. Check this link for steps to obtain it.
3. Documentation
Methods
- Post Notification
Send a notification.
notification ~ dictionary
Example
https://documentation.onesignal.com/reference/create-notificationI advise you to use the extension produced by @Jerin_Jacob , if you want to send notifications with more resources.
[Free] Extension OneSignalSend | Send onesignal notification from app itself | October Version 5 , Send by custom filter - Extensions - Kodular Community
- Send Tags
Send the tags.
tags ~ dictionary
Example
- Get Tags
Gets the tags, returning it in TagsAvailable.
- Delete Tags
Deletes one or more tags that were previously set on a user.
tags ~ list
Example
- Clear OneSignal Notifications
Clear onesignal notifications.
Events
- Tags Available
Returns the tags.
tags ~ dictionary
- Notification Received
Event triggered when receiving any notification.
id ~ text
title ~ text
payload ~ text
- Notification Opened
Event triggered when opening the notification.
id ~ text
title ~ text
payload ~ text
- OnSuccess
Returns if successful in sending the message.
response ~ dictionary
- OnFailure
Returns if there was an error sending the message.
response ~dictionary
Properties
- Get User Id
Gets the subscription id.
return ~ text
- Enable Vibrate
Enable vibration when receiving notification. (DEFAULT: TRUE)
input ~ boolean
- Enable Sound
Play sound when receiving notification. (DEFAULT: TRUE)
input ~ boolean
- Set In Focus Displaying
Setting to control how OneSignal notifications will be shown when one is received while your app is in focus.(DEFAULT: 1)
input ~ number
None ā 0 (Notification will not be displayed while app is in focus)
InAppAlert ā 1 (Native alert dialog display)
Notification ā 2 (Native notification display while user has app in focus)
4. Downloads
- AIX: com.jdl.PushNotification.aix (1.6 MB)
- AIA: Push.aia (1.6 MB)
5. Open Source
6. Credits
Thank you very much App Inventor, for being part of my life
7.Donate
If you liked my work, donate me any amount so that I can remain motivated to create free and open source extensions.
https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=QJ76K7BA7KD3A¤cy_code=USD&source=url