# wx.miniapp.agreePrivacyAuthorization

Android >= 1.1.10

This interface is used forAgreement to Privacy Policy

  • Note: In the event that the user does not agree to the privacy service agreement, the developer may not invoke any interface capabilities related to personal information.If the user does not agree to the service agreement, but to invoke the interface capabilities related to personal information, the developer needs to adjust the interface so that the user agrees to the service agreement before executing other functions. JSAPI The invocation of

# JSAPI Examples of code

wx.miniapp.agreePrivacyAuthorization({
  success(res) {
    console.log('agreePrivacyAuthorization success')
  },
  fail(res) {
    console.error('agreePrivacyAuthorization fail', res)
  }
})