AppInstallationListener( notifications, event, moduleId, version, moduleName, designerVersion, containerVersion ) method

Callback function that will be invoked when push notifications are available.

Push notification listeners can be added with hwc.addPushNotificationListener.

Syntax

<static> AppInstallationListener( notifications, event, moduleId, version, moduleName, designerVersion, containerVersion ) → {number}

Parameters

Name Type Description
notifications Array An array of notifications.
event Integer Installation flags including, BEGIN(1), END(2), FAIL(3)
moduleId String Optional Module Id
version String Optional Module version
moduleName String Optional Module display name
designerVersion String Optional Version of designer used to create app
containerVersion String Optional Version of hybrid web container

Returns

A number indicating whether other push notification listeners should be called after this one. Must be either hwc.NOTIFICATION_CANCEL (if no more listener callbacks should be called) or hwc.NOTIFICATION_CONTINUE (if more listener callbacks should be called). Callback function that will be invoked on hybrid app installation events.

Type:

number

Source

hwc-api.js, line 3675.