Enable location collection Published on Feb 11, 2026
Copy page Copy as Markdown for LLMs View as Markdown View the page as plain text
Open in ChatGPT Ask ChatGPT about this page Open in Claude Ask Claude about this page 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 = grantedfalse = revoked
Yes
enableLocationCollection(consented: boolean) : Promise<void>await window.insider.enableLocationCollection(true);
Was this article helpful?
Yes No
Previous article
Enable IP collection
Next article
Set registerWithQuietPermission
Related articles
Developer Guide > Webview SDK > Advanced Integration > Advanced Methods
Developer Guide > Webview SDK > Advanced Integration > Advanced Methods
Developer Guide > Webview SDK > Advanced Integration > Advanced Methods