API Mobile
  • Introduction
  • Mobile variables
    • Inside a mobile business component
    • Inside a mobile Javascript action
  • Mobile Javascript API
    • Dialogs
    • Forms and filter
    • Grids and gallery
    • Constraints
    • Variables and parameters
    • Working with HTTP
    • Using Sql
    • File and image
    • Crashlytics
    • Push notifications
    • Local notification
    • Others
Powered by GitBook
On this page
  • addDelayNotification(notificationTag, delayMS, title, message, actionId, optionalParams)
  • addPeriodNotification(notificationTag, delayMS, repeatIntervalMS, endDelayMs, title, message, actionId, optionalParams) {
  • removePeriodicNotification(notificationTag)
  • removeAllNotification
  1. Mobile Javascript API

Local notification

With platform mobile you can schedule local notifications on the device without needing to use firebase.

addDelayNotification(notificationTag, delayMS, title, message, actionId, optionalParams)

Set up a notification scheduled in the specified milliseconds

Argument
Description

notificationTag

notification unique indentifier

delayMS

milliseconds to wait before sending the notification

title

notification title

message

notification message

actionId

actionId call when user interact with the notification

optionalParams

JSON string passed to the notification action

addPeriodNotification(notificationTag, delayMS, repeatIntervalMS, endDelayMs, title, message, actionId, optionalParams) {

Set up a periodic notification scheduled in the specified milliseconds

Argument
Description

notificationTag

notification unique indentifier

delayMS

milliseconds to wait before sending the notification

repeatIntervalMS

every how many milliseconds to repeat the notification

title

notification title

message

notification message

actionId

actionId call when user interact with the notification

optionalParams

JSON string passed to the notification action

var notificationTag = "test"
var delayMS = 10000
var repeatIntervalMS = 15*60*1000
var endDelayMs = 16*60*1000
var title = "titolo"
var message = "messaggio"
var actionId = "1439"
var optionalParams = JSON.stringify({test:132})

addPeriodNotification(notificationTag, delayMS, repeatIntervalMS, endDelayMs, title, message, actionId, optionalParams)

removePeriodicNotification(notificationTag)

Remove periodic notification

removeAllNotification

Remove all notificaitons

PreviousPush notificationsNextOthers

Last updated 2 years ago