Request permissions again after user denies location services?

后端 未结 6 1603
耶瑟儿~
耶瑟儿~ 2020-12-05 02:43

I track the user\'s location and ask for permission when my load first loads using this:

locationManager.requestAlwaysAuthorization()
locationManager.startUp         


        
6条回答
  •  臣服心动
    2020-12-05 03:01

    You can have an alternate solution!! You can show your own alert with the better message which can convince your user to allow to receive push notifications for your app. If user allows, then only you show default permission alert for enable push notification otherwise if user disallows, don't show default alert in-fact, you can save corresponding flag in your database or NSUserDefaults and can ask user later on again and again on some events in your app.

提交回复
热议问题