Handling Location Permission Rejection and Subsequent Authorization in Mini Programs
When a user first accesses a page, the application calls wx.getLocation to request locatoin permissions. If the user denies the request, subesquent visits can check the current authorization status using wx.getSetting.
getLocation: function () {
var that = this;
wx.getLocation({
type: 'wgs84',
success: function (res) {
wx.setS ...
Posted on Thu, 14 May 2026 21:19:01 +0000 by davo666