title: How to identify when iOS prompts "Turn on Location Service" alert?
body: <p>In my app this alert shows multiple times.
  Similar issue: <a href="https://stackoverflow.com/questions/8967173/ios-why-does-turn-on-location-services-alert-show-twice-upon-startup">iOS: Why does &quot;Turn on Location Services&quot; alert show twice upon startup?</a>.</p>
  
  <p><a href="https://i.stack.imgur.com/P16x6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P16x6.png" alt="Screenshot of alert"></a></p>
  
  <p>How to identify when iOS prompts "Turn on Location Service" alert?</p>
  
  <p><strong>Scenario to see two alert in Google map app.</strong></p>
  
  <ol>
  <li>Turn off Location services of device</li>
  <li>Install of Google map app from AppStore. (If your device already have Google map app. Uninstall existing app from device and install the app from AppStore)</li>
  <li>Launch the app</li>
  <li>Mentioned alert will display</li>
  <li>Tap on "Cancel"</li>
  <li>Quit the app</li>
  <li>Launch the app again</li>
  <li>Mentioned alert will display again.</li>
  </ol>
  
  <p><strong>Another scenario to see more than two alert in Google map app.</strong></p>
  
  <ol>
  <li>Turn off Location services of device</li>
  <li>Install of Google map app from AppStore. (If your device already have Google map app. Uninstall existing app from device and install the app from AppStore) </li>
  <li>Launch the app</li>
  <li>Mentioned alert will display</li>
  <li>Lock the screen</li>
  <li>Wait for 20 seconds (You may need to wait for extra time if your device have more RAM)</li>
  <li>Unlock the screen and quit the app promptly (If you couldn't able to quit the app promptly, repeat from step 5)</li>
  <li>Launch the app again</li>
  <li>Mentioned alert will display</li>
  <li>Repeat from step 5 to see the mentioned alert again and again.</li>
  </ol>