我的应用程序在后台模式下播放音频。
问题:当用户退出应用程序时,如何在左上方屏幕添加按钮/链接以将其返回到应用程序?
(图中示例是谷歌地图)
提前致谢。
默认情况下,媒体应用程序并不打算这样做。
您可以假装是一个导航应用程序并请求位置服务权限以访问核心位置。请参阅 Apple 关于它的文档https://developer.apple.com/documentation/corelocation/getting_the_user_s_location/handling_location_events_in_the_background
虽然我怀疑这会在 App Store 上获得批准。