Enable location collection

Prev Next

This method allows you to set the user's consent status for collecting location (latitude/longitude) information. You can call this method after the SDK initialization at every step where you request your users' consent.

Parameter

Type

Description

Required

consented

Boolean

true = granted
false = revoked

Yes

enableLocationCollection(consented: boolean) : Promise<void>
await window.insider.enableLocationCollection(true);