PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 23 → [WM23] iOS Location permission
[WM23] iOS Location permission
Débuté par ARV, 06 oct. 2018 17:49 - Aucune réponse
Membre enregistré
268 messages
Posté le 06 octobre 2018 - 17:49
Hi all

I was wondering about this, look on WM20 it shows a fatal error to the user when the user decline the permission of the GPS function, this was ok but now on WM23 on a iPhone SE ver.12.0 it doesn't show anything, and it doesn't do a fatal error My code it's like this:

posicion is geoPosition


posicion = GPSGetPosition()
gResp = geoGetAddress(posicion..Latitude + "," + posicion..Longitude)

GPSEnd()

Info(gResp..Country)
Info(gResp..City)
Info(gResp..AdminArea)


If the user decline the permission all of my info shows nothing, but if he or she accept the persmission then it appears everything, on back in the day I could get the fatal error with an exception and well really know that it's a permission error but now I'm not sure if I validated that my gResp could be empty or not, validating with empty for me it's not that good at all because it doesn't tell me if it is the permission or not.

any ideas?

Thanks

--
Best Regards
ARV