Extensions
OneSignalPush icon

OneSignalPush

Send OneSignal push notifications, and receive them on this device.

23 September 2026v1.0
$7.99
Tools

About

OneSignalPush sends through the OneSignal REST API and receives on the phone through Firebase, which is how OneSignal delivers Android pushes. To receive, set AppId, connect the same Firebase project in the OneSignal dashboard (Google Android / FCM), and call StartReceiving or paste google-services.json. The Firebase Android app package must be your App Inventor package name. Subscribed returns this device's subscription id. NotificationReceived fires when a push arrives, and NotificationOpened fires when it is tapped. Receiving uses the App ID only. The REST API key is only for sending, so keep it in an admin app you trust. Android 5.0 (API 21) or newer, with Google Play services.

Features

  • Receive on this device: subscribe, show a tray notification, and handle taps
  • Receiving uses the App ID only — the REST API key stays out of the user app
  • Push to all, segments, External IDs, Subscription IDs, or tag filters
  • Schedule sends with send_after and cancel them before delivery
  • Delivery stats: successful, failed, errored, clicked, remaining
  • Create users, set/remove tags, get and delete users by External ID
  • Link this phone to an External ID so an admin app can target it
  • Android 13 notification permission, with messages queued while the app is closed
  • Works with new os_v2 App API keys and legacy REST keys

Documentation

Send OneSignal pushes from an admin app, and receive them on this device. Set AppId, connect the same Firebase project in the OneSignal dashboard, then call StartReceiving. Keep RestApiKey out of the app your users install.

NotificationSent

Event

Fired when OneSignal accepted a send or schedule. action is the method name. notificationId can be used with GetNotification or CancelNotification.

ParameterType
actiontext
notificationIdtext
responseany

NotificationCancelled

Event

Fired when a scheduled notification was cancelled.

ParameterType
notificationIdtext
responsetext

GotNotification

Event

Fired with delivery stats from GetNotification. response is the full JSON as a dictionary.

ParameterType
notificationIdtext
successfulnumber
failednumber
errorednumber
convertednumber
remainingnumber
responseany

UserUpdated

Event

Fired after CreateUser, SetTags, RemoveTags or DeleteUser succeeds.

ParameterType
actiontext
externalIdtext
responseany

GotUser

Event

Fired with the result of GetUser.

ParameterType
externalIdtext
tagsany
subscriptionCountnumber
responseany

ErrorOccurred

Event

Fired when a request fails. action is the method name, statusCode is the HTTP status (0 for local errors such as missing keys or no internet).

ParameterType
actiontext
statusCodenumber
messagetext

Subscribed

Event

This device can receive pushes. subscriptionId is the OneSignal subscription id (use it with SendToSubscriptionIds). token is the Firebase token.

ParameterType
subscriptionIdtext
tokentext

NotificationReceived

Event

A push arrived on this device. data is the extra key/value pairs. whileClosed is true when it arrived with no screen open and is delivered now.

ParameterType
notificationIdtext
titletext
messagetext
dataany
whileClosedboolean

NotificationOpened

Event

The user tapped a notification and the app opened. data is the extra key/value pairs.

ParameterType
notificationIdtext
titletext
messagetext
dataany

PermissionResult

Event

Result of RequestNotificationPermission.

ParameterType
grantedboolean

Blocks

OneSignalPush block 1OneSignalPush block 2OneSignalPush block 3OneSignalPush block 4OneSignalPush block 5OneSignalPush block 6OneSignalPush block 7OneSignalPush block 8OneSignalPush block 9OneSignalPush block 10OneSignalPush block 11OneSignalPush block 12OneSignalPush block 13OneSignalPush block 14OneSignalPush block 15OneSignalPush block 16OneSignalPush block 17OneSignalPush block 18OneSignalPush block 19OneSignalPush block 20OneSignalPush block 21OneSignalPush block 22OneSignalPush block 23OneSignalPush block 24OneSignalPush block 25OneSignalPush block 26OneSignalPush block 27OneSignalPush block 28OneSignalPush block 29OneSignalPush block 30OneSignalPush block 31OneSignalPush block 32OneSignalPush block 33OneSignalPush block 34OneSignalPush block 35OneSignalPush block 36OneSignalPush block 37OneSignalPush block 38OneSignalPush block 39OneSignalPush block 40OneSignalPush block 41OneSignalPush block 42OneSignalPush block 43OneSignalPush block 44OneSignalPush block 45OneSignalPush block 46OneSignalPush block 47OneSignalPush block 48OneSignalPush block 49OneSignalPush block 50OneSignalPush block 51OneSignalPush block 52

Compatible platforms

MIT App InventorKodularNiotronAndroid BuilderThunkable

Related extensions