After WeChat Mini Programs's openSetting was discarded, the button method could not afford to adjust the setting page.

problem description:

  • Today to do the program project, to authorize the photo album, the function is almost finished, suddenly found that there is no response to the button open-type= "openSetting" button on the mobile phone, and then even test a few mobile phones, ios, oppo, Huawei are all good, not vivo x23, poking around, looking for a solution, has any boss ever encountered it?
  • the last picture is the real vivo x23, and I"m not sure if any other phones will do this.
  • there is no response when the real machine clicks dead or alive, ~
  • < button open-type= "openSetting" > OK < / button >, this is the OK button.

the following figure shows the test scenario:

clipboard.png

clipboard.png
clipboard.png


I usually use wx.authorize to authorize. Before using it, I can also use wx.getSetting to determine whether the user has been authorized before. I don't know if it can solve your problem

.
wx.authorize({
    scope: 'scope.writePhotosAlbum',
    success() {
      //  
    }
})

finally knows the problem

  • this is true, because Mini Program API has been upgraded to be triggered by button. It seems that some versions of Wechat do not support it.
  • but not all of them. In the same version, the phone in Huawei is normal, but my vivo has no response.
  • so I don't know who should carry this pot. I, Wechat, will be fine if I upgrade it. If you meet any students, you should pay attention to it.

if there is a better solution, bosses are welcome to add,

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e50418-450a2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e50418-450a2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?