Skip to main content
Version: Next


Some of the APIs need users’ authorization before they can be called. We have divided these APIs into multiple scope according to the scope of usage. The users can select scope to authorize. After a scope is authorized, all of its APIs can be used directly.

When such an API is called:

  • If the user has not accepted or rejected this authorization, a pop-up window will appear to ask the user if he/she wants to accept. The API can be called only after the user clicks to accept;
  • If the user has accepted authorization, the API can be called directly;
  • If the user has rejected authorization, no pop-up appears. Instead, API fail callback will be accessed directly. Developers should make the scenario compatible where the user has rejected to authorization.



scope.addressbooleanNoPostal address. wx.chooseAddress
scope.camerabooleanNoCamera. [camera]( component
scope.invoicebooleanNoGets invoice. wx.chooseInvoice
scope.invoiceTitlebooleanNoInvoice title. wx.chooseInvoiceTitle
scope.recordbooleanNoRecording feature. wx.startRecord
scope.userInfobooleanNoUser information. wx.getUserInfo
scope.userLocationbooleanNoGeographic location. wx.getLocation, wx.chooseLocation
scope.werunbooleanNoWeRun step counts. wx.getWeRunData
scope.writePhotosAlbumbooleanNoSaves to album. wx.saveImageToPhotosAlbum, wx.saveVideoToPhotosAlbum