iOS 重置授予对提醒的访问权限 [英] iOS resetting granting access to reminders

查看:28
本文介绍了iOS 重置授予对提醒的访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个愚蠢的问题,你们中的一个肯定已经遇到过.

I have a silly problem, one of you surely already encountered.

我正在我的应用程序中添加提醒/警报,我正在使用:eventStoreAccessGranted.

I am working on adding reminder/alarm in my app and I am using : eventStoreAccessGranted.

一切正常.当我第一次安装该应用程序时,我被问到是否要授予对该应用程序的访问权限,我说是,然后我收到了我的提醒/警报,因为我对它进行了编程.

It all works fine. When I installed the app for the first time, I got asked if I want to grant access to the app, I said yes and then I got my reminder/alarm, as I programmed it.

不过,我需要进行更多测试,尤其是因为我正在本地化,所以我想用我正在使用的几种语言写下授予访问权限以添加提醒"的问题.问题是,我被问过一次,仅此而已,我不会再被问到.

I need to test more though and especially because I am localizing I want to write down the question of "granting access to add reminders" in the several languages I am using. Problem is, I got asked once and that's it, I don't get asked again.

我尝试关闭该应用程序并将其从我的手机中完全删除,但是当我重新安装它时,我的答案是仍然存储在某个地方,因为我没有被问到.所以在我的 iPhone 中,我进入了设置/隐私/提醒,我可以看到我的应用程序并将开关关闭,但是当我重新安装应用程序时,它 NSLogs 我访问尚未被授予",什么是是真的.

I tried killing the app and deleting it from my phones completely, but when I reinstall it, my answer yes is still stored somewhere because I don't get asked. So in my iPhones, I went to settings/privacy/reminders,I could see my app and I turned the switch to off, but then when I reinstall the app, it NSLogs me that "Access hasn't been granted", what is true.

如何在设置/隐私/提醒中删除显示我的应用程序的行和开/关开关?换句话说,我怎么能再被问到呢?提前致谢.

How can I delete in settings/privacy/reminders, the line showing my app and the switch ON/OFF, please ? In other words, how can I be asked again, please ? Thanks in advance.

推荐答案

只是一个小技巧:如果你想在开发过程中看到不同访问(照片、提醒、推送等)的访问警报,你可以使用这个 hack:

Just a little hack: If you want to see the Access Alert for different accesses (fotos, reminders, push and so on) during development, you can use this hack:

  1. 确保您的代码签名标识末尾有一个星号 (*),如下所示:
  2. 显着更改您的捆绑包标识符:示例:您的包标识符是:de.kurtsalman.myAppName --> 将其更改为 --> de.kurtsalman.myAppName2345(或任何其他)
  1. make sure your Code Signing Identity has a star (*) in the end, like this:
  2. Change your bundle Identifier significantly: Example: your bundle identifier is: de.kurtsalman.myAppName --> change it to --> de.kurtsalman.myAppName2345 (or any other)

在每次更改时(您必须随时更改它以再次查看警报视图)只需开始在设备上模拟 (cmd+R) - 现在您每次都会收到警报.

on every change (you have to change it anytime you want to see the alert view again) just start simulating on device (cmd+R) - Now you will get everytime an alert.

如果您觉得愚蠢,始终更改用于测试的包 ID,您可以在构建阶段创建一个脚本,以便在您在测试设备上运行应用程序的任何时候重写包标识符.

If its to stupid for you, to change always the bundle-ID for testing, you can create a script in your build phases, to rewrite the bundle identifier for anytime you Run your App on your test device.

这篇关于iOS 重置授予对提醒的访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆