Silent SDK Commands

Silent Location Command

Anytime you send the below frame from app.synerise.com, the SDK can send the SNRAppearedInLocationEvent event automatically.

"data": {
    "issuer": "Synerise",
    "message-type": "dynamic-content",
    "content-type": "silent-sdk-command",
    "content": {
        "class_name": "com.synerise.sdk.injector.Injector",
        "method_name": "GET_LOCATION",
        "method_parameters": []
    }
}


Setup

To enable this functionality, your application needs permission to use localization services.

Check Apple Developer Documentation - CLLocationManager for details.

You also need to configure the following settings:

Synerise.settings.tracker.locationAutomatic = true

Custom Implementation

You can specify additional custom actions for the Silent Location Command. You need to implement optional method from SNRTrackerDelegate.

//MARK: - TrackerDelegate

extension ApplicationController: TrackerDelegate {
	func snr_locationUpdateRequired() -> Void {
		// your custom code for Silent Localization Command
	}
}
Note: Custom implementation is an additional feature. If you don’t configure the SDK to the send the event, set Synerise.settings.tracker.locationAutomatic to false. Then, only your custom implementation will be invoked.
😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.