Small micro-channel program filled pit summary

1. Description of the problem: micro-channel call applet API: wx.getLocation, used to obtain the user's current location, speed. Into the failed callback function.

Solution: Increase in app.json at the configuration file:

" Permission " : {
     " scope.userLocation " : {
       " desc " : " Your position will be used to show the effect of the position of the applet interface " 
    } 
  }

Solution: Develop This document has explained. Before calling this API require user authorization .




Guess you like

Origin www.cnblogs.com/dadouF4/p/11084340.html