-3

I'm looking for a technical solution to give my app users an emergency button that would automatically send to a saved phone number the current GPS position.

The idea is to reproduce the function "Send my current position" available in the Message App.

I'm developing in Swift language. Would someone have any idea to do so ?

Thanks a lot in advance.

EDIT :

What I'm trying to do, is to send by message the current user location on a Maps app fashion. I know how to retrieve a CLLocation but I can't only send by text latitude and longitude. I would like to send the user position on a Map in the Message App just like "Send my current position" does.

GrayFox
  • 824
  • 2
  • 10
  • 27
  • http://stackoverflow.com/questions/25449469/swift-show-current-location-and-update-location-in-a-mkmapview check this – Subin K Kuriakose Jul 08 '16 at 13:09
  • Oh thanks, but i know how to retrieve the current coordinate. My question might be not detailed enough, I add more info ;) – GrayFox Jul 08 '16 at 13:48

1 Answers1

1

you send a link

comgooglemaps://?center=40.765819,-73.975866&zoom=14&views=traffic

https://developers.google.com/maps/documentation/ios-sdk/urlscheme

Daniel Poulsen
  • 1,446
  • 13
  • 21
  • Oh yes that's it ! I didn't we can send URL to open apps. This works too with Apple Maps app : https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html Thanks a lot ! – GrayFox Jul 11 '16 at 06:56