Module: MCELocationPlugin

Acoustic MCE Location Cordova Plugin
Source:

Methods

(static) locationAuthorization()

This method reports if the App has authorization to use location services. It can report the following values: -2 The App has foreground only access to location services (use manualLocationInitialization) -1 The App is not authorized to use location services 0 The App has not yet requested to use location services (use manualLocationInitialization) 1 The App has complete access to location services
Source:

(static) manualLocationInitialization()

Manually initialize location services for SDK, requires AUTO_INITIALIZE_LOCATION=FALSE in the co.acoustic.mobile.push.location Cordova config This is used to delay location services initalization until desired.
Source:

(static) setLocationAuthorizationCallback()

This callback is called when access to the location services changes.
Source:

(static) setLocationUpdatedCallback(callback)

Set callback for location database updates
Parameters:
Name Type Description
callback locationCallback Callback which will be called when the database is updated.
Source:

(static) syncLocations()

Ask SDK to syncronize the geofences with the server. This can only be called once every 5 minutes.
Source:

Type Definitions

locationCallback

The location callback includes no data. When it is received you should refresh your inbox database.
Source: