简体   繁体   English

如何在后台模式下为 iOS 应用程序创建“重新打开”应用程序按钮? (迅速)

[英]how do I create “reopen” app button for iOS apps in background mode? (Swift)

My app plays audio in background mode.我的应用程序在后台模式下播放音频。

Question: when a user exits the app, how do you add a button/link to the top left screen to return them to the app?问题:当用户退出应用程序时,如何在左上方屏幕添加按钮/链接以将其返回到应用程序?

(example pictured is google maps) (图中示例是谷歌地图)

Thanks in advance.提前致谢。

在此处输入图像描述

By default, media apps are not meant to do this.默认情况下,媒体应用程序并不打算这样做。

You could pretend to be a Navigation app and ask for Location Services permissions to get access to Core Location.您可以假装是一个导航应用程序并请求位置服务权限以访问核心位置。 See Apple's documentation on it https://developer.apple.com/documentation/corelocation/getting_the_user_s_location/handling_location_events_in_the_background请参阅 Apple 的文档https://developer.apple.com/documentation/corelocation/getting_the_user_s_location/handling_location_events_in_the_background

Although I doubt that would get approved on the App Store.虽然我怀疑这会在 App Store 上获得批准。

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

相关问题 iOS应用程序-从后台模式重新打开应用程序 - IOS application - reopen application from background mode 如何通过按钮重新打开视图控制器? - How do I reopen a view controller by a button? 如何使用Swift从iOS 8.1中的按钮按下加载iOS日历应用 - How do I load the iOS Calendar App from a button push in iOS 8.1 using Swift 如何在应用重新打开时刷新iOS主屏幕PWA - How can I refresh iOS homescreen PWA on app reopen 如何使用Swift在iOS中使用透明设置背景图片? - How do I set a background image in iOS with transparency using Swift? 如何创建可以从IOS(swift)应用程序连续接收数据的AWS服务器? - How do I create an AWS server that could recieve data continously from an IOS(swift) app? 当应用程序处于后台模式时更改tabBar徽章(Swift iOS) - Change tabBar badge when an app is in background mode (swift ios) iOS swift流媒体应用程序无法在后台模式播放音乐 - iOS swift streaming app does not play music in background mode 在使用Swift的iOS中,如何创建始终在整个应用程序顶部的可拖动和浮动UIView - In iOS using swift, how do I create a draggable and floating UIView that is always on the top of throughout the entire app Swift:从后台重新打开应用,在Appdelegate之前willEnterForeground运行 - Swift: Reopen app from background, willEnterForeground runs before appdelegate
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM