OneSignalPush

Last Updated On 2021-07-16

Version 1MinSDK 7Tutorial Video

Component for receiving onesignal push nitification


Properties

You can set the below properties in the UI part of the builder.

  • AppId - it's a text value which is set to blank by default.
  • SoundEnabled - it's a boolean value which is set to true by default.
  • SubscriptionEnabled - it's a boolean value which is set to true by default.
  • VirbrationEnabled - it's a boolean value which is set to true by default.

Block Properties

You can set the below blocks properties in the blocks section of the builder.

AppId

Property for AppId


SoundEnabled

Property for SoundEnabled


SubscriptionEnabled

Property for SubscriptionEnabled


VirbrationEnabled

Property for VirbrationEnabled



Methods

You can set the below method blocks in the blocks section of the builder.

ClearAllNotifications

Method for ClearAllNotifications

ClearNotification

Method for ClearNotification

DeleteTags

Deletes one or more tags. Takes list of tags in parameter

GetTags

Get the tags

GetUserId

Gets the subscription id. Returns -1 if any error occurred

PostNotification

Send a notification.

SendNotification

Sends notification programatically from device

SendTags

Send the tags.


Events

You can set the below event blocks in the blocks section of the builder.

GotTags

Returns the tags.

OnErrorSendingNotification

Triggers when error sending notification

OnNotificationFailed

Returns if there was an error sending the message.

OnNotificationSend

Triggers when sent notification successfully

OpenedNotification

Event for OpenedNotification

ReceivedNotification

Event for ReceivedNotification