[英]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.