handlePushMessage
Handle push message
When your application receives a push message (which was sent by the Token Server) it can be handled by the Onegini Cordova Plugin.
![copy link to clipboard](../../../../../theme/img/icon-link.svg)
onegini.mobileAuth.push.handlePushMessage
This function handles received push message
- Requires a pushData in form of a JSON object
- Push can be handled by the Onegini Cordova Plugin if the supplied JSON object contains the
og_transaction_id
andog_profile_id
entry in the root orcontent
key. Here are examples of accepted JSON object.
Example 1:
Example 2:
Example usage:
The error callback contains an object with the following properties:
Property | Example | Description |
---|---|---|
code |
8000 | The error code |
description |
"Onegini: Internal plugin error" | Human readable error description |