如果用户意外拒绝了位置服务,该如何获取位置服务来提示用户获得位置许可? [英] How to get location services to reprompt the user for location permission if they accidentally refused it?

查看:255
本文介绍了如果用户意外拒绝了位置服务,该如何获取位置服务来提示用户获得位置许可?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当要求用户允许用户位置时,如果他们意外选择了否",则此警报将永远不会显示在我们的应用中.每次打开应用程序时,是否都可以选择重新提示警报.在提到SO问题后,许多人建议这并非全部可能.唯一可以做的是,我们已提醒用户在设置中打开位置服务. /p>

但是在某些S.O问题中,每次根据用户的选择启动CLLocationManager更新方法时,我们都可以重新提示警报,是否有可能实现?

现在我的疑问是,当用户第一次不允许时是否可以重新提示警报?

请分享您的想法.

谢谢.

解决方案

没有任何提示.您将必须UIAlert用户去手动进行操作.

When the users are asked to allow the user location, if they select accidentally "NO", then this alert is never shown in our app. Is there any option to reprompt the alert every time they open the app.After referring S.O question, many are suggesting this not all possible.Only thing can be do is, we have alert the user to turn-on location service in settings.

But in some S.O questions, starting CLLocationManager update method every time based on the user's selection we can reprompt the alert.Is it possible to achieve this?

Now my doubt is, is it possible to reprompt the alert when the user don't allow for the first time?

Please share your ideas.

Thank you.

解决方案

There is no way to reprompt. You will have to UIAlert the user to go and do it manually.

这篇关于如果用户意外拒绝了位置服务,该如何获取位置服务来提示用户获得位置许可?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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