Set mobileAppAccess consent

Prev Next

This method allows you to set the user's mobile app access status. 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

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