GmsCore
GmsCore copied to clipboard
Location: Avoid repeated pop-ups
When you start Google Maps for the first time, it will pop up a location information authorization pop-up window through requestLocationSettingsDialog. After clicking Allow only during the trial period, some models will cause repeated pop-ups. Some models will jump to the MG authorization page. After returning from the page, the ensurePermissions method in LocationManager will jump to the MG authorization page again.