简体   繁体   English

当用户更改隐私设置时,iOS应用返回到主屏幕是正常行为吗?

[英]is it normal behaviour for an iOS app to go back to its home screen when users make a change to privacy settings?

My iOS app need full access to the users contact for certain functions. 我的iOS应用需要完全访问用户联系人的某些功能。

If the user refuses this access and later tries to access one of those functions I put up an alert that tells them they need to give permission and the option to go to the settings by clicking 'change permission' 如果用户拒绝此访问权限,后来又尝试访问这些功能之一,我会发出警报,告知他们需要授予权限,并可以通过单击“更改权限”来选择设置

If they click to change permission the app throws the user out to the setting screen for the app in the main iOS settings. 如果他们单击以更改权限,则该应用会将用户带到主要iOS设置中该应用的设置屏幕。 If they make the change there, then come back to the app, the screen they left from returns momentarily and then changes to the apps startup screen. 如果他们在那里进行更改,则返回到应用程序,他们离开的屏幕会暂时返回,然后更改为应用程序启动屏幕。

If they go to settings and do not make that change then go back to the app then it just puts up the screen it left from and carries on as normal. 如果他们进入设置而不进行更改,然后返回到应用程序,则它只会显示离开的屏幕并正常进行。

is this normal behaviour when a permissions change is made - does the app need to restart to acknowledge that change? 权限更改后,这是正常现象吗?应用需要重启以确认更改吗?

If thats the case should I be putting something in the app delegate to handle this ? 如果是这种情况,我应该在应用程序委托中放入一些东西来解决这个问题吗?

cheers 干杯

This is fully normal behavior. 这是完全正常的行为。 iOS terminates the app (an app receives SIGKILL signal) in order the new privacy to be applied. iOS终止该应用程序(一个应用程序收到SIGKILL信号),以便应用新的隐私。 You see an old view content, because it was captured with snapshotViewAfterScreenUpdates: when going background (see more at App life cycle docs ). 您会看到一个旧的视图内容,因为它是在后台运行时被snapshotViewAfterScreenUpdates:捕获的(请参阅App生命周期文档中的更多内容 )。 Your responsibility here is to save the user data frequently enough. 您的责任是足够频繁地保存用户数据。 Read Apple's guide for more info. 阅读Apple指南以获取更多信息。

I have witnessed the same behavior. 我目睹了同样的行为。 So, yes, it seems to be the normal behaviour. 因此,是的,这似乎是正常的行为。

暂无
暂无

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

相关问题 返回主屏幕 - Go Back to home screen 通过iOS应用发布到用户墙时的隐私设置 - Privacy settings when posting to a user walls through iOS app 当应用程序检测到隐私设置更改时自动重启 - Having app restart itself when it detects change to privacy settings 应用程序被 iOS 强制重启并使用新的隐私设置 - App is forced to restart by iOS with new privacy settings 迅捷的…如何在按下按钮并将其恢复为正常状态时更改图像? - Swift… how can I make an image change when a button its pressed and return it back to normal? Vimeo在iOS应用中嵌入的视频:“抱歉,由于其隐私设置,此视频无法在此播放” - Embedded videos from Vimeo in iOS app: “Sorry, because of its privacy settings, this video cannot be played here” iOS-进入主屏幕并返回应用程序时,Pulse动画已暂停 - iOS - Pulse animation paused when going to home screen and getting back to the app Flutter web:当应用程序安装到主屏幕时,如何修复在 IOS 中向后滑动时的白页 - Flutter web: how to fix white page on swipe back in IOS when app is installed to home screen 应用程序似乎在锁定屏幕一段时间后退出,正常行为? - App seems to quit after a while when locking screen, normal behaviour? 如何从应用程序内部或外部MDM以编程方式更改屏幕时间和隐私限制设置? - How to change Screen Time and Privacy restrictions settings programatically from inside an app or from an external MDM?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM