04- Remote Configuration

You can change the Situm SDK Configuration for both iOS and Android using the Remote Configuration. The Remote Configuration allows you to change the positioning settings of your app at any time and without programmatic changes that requires recompilation.

Configuring the Remote Configuration in Android #

In Wayfinding Android, you can instruct the component to use the Remote Configuration using the parameter useRemoteConfig of LibrarySettings and passing a true value (the default value is false):

LibrarySettings librarySettings = new LibrarySettings();
…
// Tell the component to use the remote config:
librarySettings.setUseRemoteConfig(true);
// Create library:
SitumMapsLibrary library = new SitumMapsLibrary(R.id.maps_library_target, context, librarySettings);
…
// Load:
library.load();

Everytime the user starts positioning, the underlying Situm SDK will request location updates using the Remote Configuration.

If you want to override the remote settings programmatically, you can intercept the location request and customize it to fit your needs:

library.addLocationRequestInterceptor(builder -> {
    builder.buildingIdentifier(YOUR_BUILDING_ID);
    …
});

Configuring the Remote Configuration in iOS #

In Wayfinding iOS, you can instruct the component to use the Remote Configuration using the parameter useRemoteConfig of LibrarySettings and passing a true value (the default value is false):

let settings = LibrarySettings.Builder()
                .setCredentials(credentials: credentials)
                .setBuildingId(buildingId: buildingId)
                .setUseRemoteConfig(useRemoteConfig: useRemoteConfig)
                .build()
let library = SitumMapsLibrary(containedBy: self.containerView, controlledBy: self, withSettings: settings)

...

library.load()

Everytime the user starts positioning, the underlying Situm SDK will request location updates using the Remote Configuration.

Subscribe to our newsletter

BASIC INFORMATION ON DATA PROTECTION

Data controller: SITUM TECHNOLOGIES, S.L.
Contact: Data controller: situm@situm.es
Responsible for protection: dpo@situm.es
Purpose and legal basis: To manage the sending of SITUM newsletters only with consent.
Legitimation: Express consent of the interested party.
Recipients: The data will not be passed on to third parties with the exception of legal obligations.
Retention period: As long as the interested party remains subscribed to the newsletter (a link to unsubscribe will be available in each newsletter sent by Situm).
Rights: The interested party may at any time revoke their consent, as well as exercise their rights of opposition, access, conservation, rectification, limitation, deletion of data and not be subject to a decision based only on automated data processing, by writing to SITUM at the addresses indicated.
Additional Information: You can consult additional and detailed information on Data Protection in our privacy policy.

Please, download your copy here

Thank you for downloading our whitepaper. Please do not hesitate to contact us if you would like to know more about how our solutions can help your business. Download whitepaper


Close window