push-receive
and push-notification
events.push-receive
automatically, and creates a notification in the Notification Center. When this notification is opened, it fires push-notification
.push-receive
event to immediately react on a push in case it is received in foreground, e.g. update content on a current page in your app. push-notification
, on the other side, is used to react on a notification click event, which requires user interaction, e.g. to navigate within your app, trigger a new process in your app etc.NONE
– do not display a notification when the app is in the foreground (default)BANNER
– displays banner in-app alertALERT
– alert notificationtrue
– do not automatically handle foreground pushesfalse
– automatically handle foreground pushes (default)config.xml
:www/res/sound_name.wav
.LOG_LEVEL
variable to one of the following values:NONE
– no logs from the SDKERROR
– only display errors in the consoleWARNING
– show warningsINFO
– show informational messagesDEBUG
– show everything, including debug information (default)phonegap plugin add pushwoosh-geozones-cordova-plugin
cordova plugin add pushwoosh-geozones-cordova-plugin
ionic plugin add pushwoosh-geozones-cordova-plugin
NSLocationWhenInUseUsageDescription
– (required) for app to track Geozones only while running in the foreground.NSLocationAlwaysAndWhenInUseUsageDescription
- (required) for app to track Geozones in both conditions, and to show a permission request dialog pop-up.NSLocationAlwaysUsageDescription
– (optional) for app to track Geozones at all times; should be used if your app targets iOS 10 and earlier versions.cordova-plugin-geolocation
plugin. NSLocationWhenInUseUsageDescription
can be specified using GEOLOCATION_USAGE_DESCRIPTION
variableplugin.xml
: