简体   繁体   English

Swift - 即使应用程序终止,如何使用 URLSession 发送位置

[英]Swift - How to send location with URLSession even if the App is terminated

Can anyone tell me how to update a users location and run a URLSession even if the App was terminated?谁能告诉我即使应用程序被终止,如何更新用户位置并运行 URLSession ?

Thanks!谢谢!

Apple does not allow such a thing in iOS Development. Apple 在 iOS 开发中不允许这样的事情。 There is no regular or tricky way to do that!没有常规或棘手的方法可以做到这一点!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何获取和发送位置(即使应用程序终止或暂停)到服务器 - How to get and send location(even if application is terminated or suspended) to server 即使应用程序终止,如何在 Flutter 中添加实时位置跟踪? - How to add live location tracking in Flutter even app is terminated? 即使使用 carp_background_location 终止应用程序,也将最新位置发送到 Firestore - send latest location to the Firestore even when the app is terminated using carp_background_location 即使应用程序终止,如何在 Swift 中每小时在后台获取数据? - How to fetch data in background every hour in Swift even the app is terminated? 连续的位置更新,即使应用在iOS中终止 - Continious location updates even if app is terminated in iOS 即使应用程序被杀死/终止,位置更新 - Location update even when app is killed/terminated 快速显示本地通知,即使应用终止 - swift display local notification even the app terminated 应用程序终止时如何发送后台位置 - how to send background location when application terminated 即使应用终止,在iOS中实施定期位置更新 - Implementing Periodic Location Updates in iOS even if app gets terminated 如何在 Swift 中存根 URLSession? - How to stub URLSession in Swift?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM