Why does the H5 positioning box always prompt in IOS?

clipboard.png

I have already clicked and disallowed to enter the page for the first time. Do you want to enter this page or play again next time? How did you get him to stop playing?


  1. permission management is included in the application, which forbids geographical location.
  2. H5, if you really want to ban it, ban the browser.

when the user chooses not to allow it, add an attribute to the sessionstorage. For example, before notAllowGetCurrentPosition:true
calls h5 to get the api of the location, look for notAllowGetCurrentPosition in the sessionstorage to determine whether the user has been disallowed to obtain the current location

.
Menu