This method is not executed on the home page of navigator.geolocation.getCurrentPosition (). Refresh it again before it can be executed.

problem: the IOS system entered the page for the first time and added if (navigator.geolocation) {}, but did not execute navigator.geolocation.getCurrentPosition (this.showPosition.bind (this), this.showError.bind (this), options);
did not enter showPosition (), nor showError () event
Android machine is normal, this problem will not occur
Code:

  if(navigator.geolocation){
    console.log(navigator.geolocation);
  alert(1);
  const options = {
    enableHightAcuracy: false, // false
    timeout: 6000, // 
    maximunAge: 30000 // 
  };
navigator.geolocation.getCurrentPosition(this.showPosition.bind(this), this.showError.bind(this), options);
  
} else {
  console.log("");
   alert("");
  this.cityName = sessionStorage.getItem(COMMON.CITY_NAME);
  this.goPage();
}
Feb.28,2021

add a window.onload

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-1b2b56a-4e6f3.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-1b2b56a-4e6f3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?