[PAID | 2.99$ only] OneSignal Send Push API Extension- OneSignal Message: Send and View Push notifications, Emails & SMS via OneSignal API

πŸƒβ€β™‚οΈ OneSignal Message

An extension for Kodular, to send and view Push notifications, Emails and SMS using OneSignal API.

:memo: Specifications


:package: Package: in.sarthakdev.onesignalmessage
:floppy_disk: Size: 45.94 KB
:gear: Version: 1.0
:mobile_phone: Minimum API Level: 14
:date: Updated On: 2025-10-13T18:30:00Z
:laptop: Built & documented using: FAST v5.2.1


:handshake: Multi-Components

  1. OneSignal
  2. OneSignalEmail
  3. OneSignalPush
  4. OneSignalSms

:puzzle_piece: OneSignal

Main component to initialize the OneSignal SDK for all other OneSignal components.

blocks

Method:

OneSignal has total 1 method.

1. Initialize

Initialize the OneSignal SDK. This must be called before using any other OneSignal component.

Parameter Type
restApiKey text
appId text

Getters:

OneSignal has total 3 getter properties.

1. IsInitialized

Returns true if the SDK has been initialized.

  • Return type: boolean

2. RestApiKey

The OneSignal REST API Key you have provided.

  • Return type: text

3. AppId

The OneSignal App ID you have provided.

  • Return type: text

:puzzle_piece: OneSignalEmail

Send transactional emails via OneSignal. Requires the main OneSignal component to be initialized.

Events:

OneSignalEmail has total 12 events.

1. OnSuccess

A generic success event for API calls.

Parameter Type
endpoint text
responseJson text

2. OnError

A generic error event for API calls.

Parameter Type
endpoint text
error text

3. ViewMessageSuccess

Event raised when a message is viewed successfully.

Parameter Type
response text

4. ViewMessageError

Event raised when viewing a message fails.

Parameter Type
error text

5. ViewMessagesSuccess

Event raised when messages are viewed successfully.

Parameter Type
response text

6. ViewMessagesError

Event raised when viewing messages fails.

Parameter Type
error text

7. CancelMessageSuccess

Event raised when a message is canceled successfully.

Parameter Type
response text

8. CancelMessageError

Event raised when canceling a message fails.

Parameter Type
error text

9. MessageHistorySuccess

Event raised when message history is retrieved successfully.

Parameter Type
response text

10. MessageHistoryError

Event raised when retrieving message history fails.

Parameter Type
error text

11. SendEmailSuccess

Event raised when an email is sent successfully.

Parameter Type
response text

12. SendEmailError

Event raised when sending an email fails.

Parameter Type
error text

Methods:

OneSignalEmail has total 6 methods.

1. ViewMessage

View a single message (push/email/sms) by ID.

Parameter Type
messageId text

2. ViewMessages

View messages with pagination.

Parameter Type
limit number
offset number

3. CancelMessage

Cancel a scheduled message by ID.

Parameter Type
messageId text

4. MessageHistory

Request CSV history (sent/clicked) for a message.

Parameter Type
messageId text
events text
emailForReport text

5. SendEmail

Send an email with advanced options. Use empty strings or empty JSON arrays/objects for unused parameters.

Parameter Type
subject text
bodyHtml text
bodyText text
fromName text
fromEmail text
replyToName text
replyToEmail text
includedSegments text
excludedSegments text
includeEmailTokens text
includeExternalUserIds text
filters text
data text

6. SendEmailFromJSON

Send an email using a raw JSON object. Allows full API access.

Parameter Type
json text

:puzzle_piece: OneSignalPush

Send OneSignal push notifications. Requires the main OneSignal component to be initialized.

Events:

OneSignalPush has total 12 events.

1. OnSuccess

A generic success event for API calls.

Parameter Type
endpoint text
responseJson text

2. OnError

A generic error event for API calls.

Parameter Type
endpoint text
error text

3. ViewMessageSuccess

Event raised when a message is viewed successfully.

Parameter Type
response text

4. ViewMessageError

Event raised when viewing a message fails.

Parameter Type
error text

5. ViewMessagesSuccess

Event raised when messages are viewed successfully.

Parameter Type
response text

6. ViewMessagesError

Event raised when viewing messages fails.

Parameter Type
error text

7. CancelMessageSuccess

Event raised when a message is canceled successfully.

Parameter Type
response text

8. CancelMessageError

Event raised when canceling a message fails.

Parameter Type
error text

9. MessageHistorySuccess

Event raised when message history is retrieved successfully.

Parameter Type
response text

10. MessageHistoryError

Event raised when retrieving message history fails.

Parameter Type
error text

11. SendPushSuccess

Event raised when a push notification is sent successfully.

Parameter Type
response text

12. SendPushError

Event raised when sending a push notification fails.

Parameter Type
error text

Methods:

OneSignalPush has total 6 methods.

1. ViewMessage

View a single message (push/email/sms) by ID.

Parameter Type
messageId text

2. ViewMessages

View messages with pagination.

Parameter Type
limit number
offset number

3. CancelMessage

Cancel a scheduled message by ID.

Parameter Type
messageId text

4. MessageHistory

Request CSV history (sent/clicked) for a message.

Parameter Type
messageId text
events text
emailForReport text

5. SendPush

Send a push notification with advanced options. Use empty strings for unused parameters.

Parameter Type
title text
message text
includedSegments text
excludedSegments text
includePlayerIds text
includeExternalUserIds text
filters text
data text
imageUrl text
largeIcon text
bigPicture text

6. SendPushFromJSON

Send a push notification using a raw JSON object. Allows full API access.

Parameter Type
json text

:puzzle_piece: OneSignalSms

Send SMS/MMS via OneSignal. Requires the main OneSignal component to be initialized.

Events:

OneSignalSms has total 12 events.

1. OnSuccess

A generic success event for API calls.

Parameter Type
endpoint text
responseJson text

2. OnError

A generic error event for API calls.

Parameter Type
endpoint text
error text

3. ViewMessageSuccess

Event raised when a message is viewed successfully.

Parameter Type
response text

4. ViewMessageError

Event raised when viewing a message fails.

Parameter Type
error text

5. ViewMessagesSuccess

Event raised when messages are viewed successfully.

Parameter Type
response text

6. ViewMessagesError

Event raised when viewing messages fails.

Parameter Type
error text

7. CancelMessageSuccess

Event raised when a message is canceled successfully.

Parameter Type
response text

8. CancelMessageError

Event raised when canceling a message fails.

Parameter Type
error text

9. MessageHistorySuccess

Event raised when message history is retrieved successfully.

Parameter Type
response text

10. MessageHistoryError

Event raised when retrieving message history fails.

Parameter Type
error text

11. SendSmsSuccess

Event raised when an SMS is sent successfully.

Parameter Type
response text

12. SendSmsError

Event raised when sending an SMS fails.

Parameter Type
error text

Methods:

OneSignalSms has total 6 methods.

1. ViewMessage

View a single message (push/email/sms) by ID.

Parameter Type
messageId text

2. ViewMessages

View messages with pagination.

Parameter Type
limit number
offset number

3. CancelMessage

Cancel a scheduled message by ID.

Parameter Type
messageId text

4. MessageHistory

Request CSV history (sent/clicked) for a message.

Parameter Type
messageId text
events text
emailForReport text

5. SendSms

Send an SMS/MMS with advanced options. Use empty strings or empty JSON arrays for unused parameters.

Parameter Type
message text
fromSmsNumber text
mediaUrls text
includedSegments text
excludedSegments text
includePhoneNumbers text
includeExternalUserIds text
filters text
data text

6. SendSmsFromJSON

Send an SMS/MMS using a raw JSON object. Allows full API access.

Parameter Type
json text

Get the Extension now :dizzy:

The extension is available for just 2.99$ from the link below! (Offer valid for this week only!)

1 Like

:dizzy: The only Solution you need for Marketing using OneSignal

  1. Configure Push notifications in your app using the latest OneSignal Push Components from Kodular!
  2. Use OneSignal Message Extension to send Push notifications via OneSignal API (everyone or selected users)

But wait not just that, Take Emails from users and use the extension to send customized Emails or SMS using OneSignal!

The new components for OneSignal Push are awesome, the only thing left is sending Push, Emails and SMS to make marketing in your app easy! This extension solves the issue!

Diwali Offer!

Participate in the scratch and win offer on my site to win discounts upto 15% on OneSignal Message Extension! Buy now!

Just added a new Tab :star_struck:

Thanks for your contribution

1 Like

Special Offer :tada:

Nearly 10+ people messaged me who wanted to get this extension in order to send push directly from their app, so as a token of appreciation for the developers that believe in my extensions so much- The extension is available for just 2.99$ or 250 INR if you buy now! (Offer Valid for Limited time only)
Buy now :backhand_index_pointing_down:

Another gift is available in DIWALI OFFER!
For everyone, 1 month of Free Perplexity Pro for everyone!
Visit sarthakdev.in now!

hi


Your plugin is not working. It gives this error when I add it to the project.

provide an AIA

Or have you never tested it?

1 Like

I always test my extension before releasing. Could you please send me the detailed error log in the dm or what other extensions are present.

The dialog is already attached there

I was unable to run the extension

1 Like

Let me verify it by tomorrow was working fine the last time i tested it

I am waiting for news. You can also share a working AIA. I don’t know how to use your codes. It gave an error every time I tried.

1 Like