Push Message Javascript API

Methods

addPushUser

addPushUser - Use this method to register a new user id on a particular appMobi application.

alert

alert - This method will display a modal alert box.

checkPushUser

checkPushUser - Use this method to confirm the credentials of a user or to log an existing user in on a different device.

deletePushNotifications

deletePushNotifications - Use this method to remove notifications from the server.

deletePushUser

deletePushUser - Use this method to sign out of push notifications and no longer receive push messages for the application.

editPushUser

editPushUser - Use this method to change the email address and the password associated with the push notification service of an appMobi application.

findPushUser

findPushUser - Use this method to allow users to find other users of an appMobi application. It provides a kind of “friends” functionality.

getNotificationData

getNotificationData - Use this method to get any data associated with a notification.

getNotificationsList

getNotificationsList - Use this method to get a list of id keys to obtain access to the list of available notifications for this user.

readPushNotifications

readPushNotifications - Use this method to remove notifications from the server.

refreshPushNotifications

refreshPushNotifications - Use this method to allow users to force a user’s device to re-synchronize notifications between this device and the database on the server.

sendPushNotification

sendPushNotification - Use this method to send a push notification to another user of an application.

sendPushUserPass

sendPushUserPass - Use this method to send an email message to a user including the password for push notifications for a particular appMobi application.

setPushUserAttributes

setPushUserAttributes - Use this method to associate attributes to a user.

Events

appMobi.notification.push.delete

appMobi.notification.push.delete - This event is fired once a push notification is removed from the messaging system.

appMobi.notification.push.disable

appMobi.notification.push.disable - This event is fired once the user is signed out of the pushMobi messaging system.

appMobi.notification.push.enable

appMobi.notification.push.enable - This event is fired once a user’s credentials have been confirmed by the application.

appMobi.notification.push.read

appMobi.notification.push.read - This event is fired once a push notification is marked as read and removed from the messaging system.

appMobi.notification.push.receive

appMobi.notification.push.receive - This event is fired once the application has gotten a push notification.

appMobi.notification.push.refresh

appMobi.notification.push.refresh - This event is fired once the notification system refreshes the data on an application.

appMobi.notification.push.send

appMobi.notification.push.send - This event is fired once a push notification is sent from an application.

appMobi.notification.push.sendpassword

appMobi.notification.push.sendpassword - This event is fired once a request is made by a user to have their notifications password emailed to them

appMobi.notification.push.user.edit

appMobi.notification.push.user.edit - This event is fired once a user changes their email address or password in the notification system.

appMobi.notification.push.user.editattributes

appMobi.notification.push.user.editattributes - This event is fired once further demographic information is associated with a user.

appMobi.notification.push.user.find

appMobi.notification.push.user.find - This event is fired following a request by an application to find other users of the application.

appMobi.notification.user.input

appMobi.notification.push.user.input - This event is fired if user has not been authorized to use best level security.