The method that triggers the dialog is this one https://developer.apple.com/documentation/corelocation/cllocationmanager/requestwheninuseauthorization()