"Send my current position" 以编程方式发送消息 ios

"Send my current position" message programmatically ios

我正在寻找一种技术解决方案,以便为我的应用用户提供一个紧急按钮,该按钮会自动将当前 GPS 位置发送到已保存的 phone 号码。

想法是重现消息应用程序中可用的功能"Send my current position"。

我正在使用 Swift 语言进行开发。有人会这样做吗?

非常感谢。

编辑

我正在尝试做的是通过消息发送地图应用时尚上的当前用户位置。我知道如何检索 CLLocation,但我不能只通过文本纬度和经度发送。我想像 "Send my current position" 一样在 Message App 中发送用户在地图上的位置。

你发一个link

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

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