The WindVane miniapps supports device information authorization. This guide only introduces the steps of how to enable device authorization via the SDK. For detailed business workflows, please refer to the documentation wv.authorize User Device Information Authorization Process.
How to Enable
When initializing the SDK, APP developers should set the needAuthFromApp parameter to true within the EMASMiniAppInitConfig class.
How to Customize Styles
During SDK initialization, APP developers can customize styles by setting the popStyle property in the EMASMiniAppInitConfig class.
How to Customize Copywriting
To customize copywriting, APP developers should invoke the updatePopAuthInfo method within the EMASMiniAppService class.
Note
After setting needAuthFromApp to true, the container will disable the following native JS methods or tags:
navigator.geolocation.getCurrentPosition
navigator.geolocation.watchPosition
navigator.geolocation.clearWatch
<input type="file" onchange="">
navigator.mediaDevices.getUserMedia