Permission getLocation need to declare the field in app.json

Applet development, after clearing authorization status, recompile, suggesting: getLocation need to declare Permission field in app.json

Need to increase the permission attributes configured in app.json inside (game must be configured in game.json in):

  "permission": { 
    "scope.userLocation": { 
      "desc": "Your position information for the applet to show the effect of the position of the interface" 
    } 
  },

effect:

 

After determining to authorize.

 

Guess you like

Origin www.cnblogs.com/zjfjava/p/10953046.html