3

My application ask for location and notification permissions. When user launch the app for first time the location request displays and after notification request displays.

Is there any way to request this better? Maybe an a list like in Android or anything better than I have right now?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Ricardo
  • 7,921
  • 14
  • 64
  • 111
  • When in rome, do what the romans do. Luckily on iOS you do not have to register for permissions at install time, but the moment the user needs the functionality. Makes things much clearer for the user when done the right way. – dogsgod Apr 25 '15 at 12:22
  • A cleaner way IMO is to have an onboarding flow, Screen1 (tell a few words about your location feature)-> Continue (Continue will invoke permission), Screen2 - Notification etc etc – anoop4real Feb 19 '18 at 09:41

2 Answers2

6

You should generally only ask for permissions or check for authorisation when it is required by the app, and not when the user launches the app for the first time. For example, notification permissions could be requested at launch, but location permissions should be requested only when the data is required in your app.

As far as I know, there is no Android-like way to request for permissions.

Edit: You may want to check out third party libraries like ISHPermissionKit and JLPermissions, which provide a more unified approach to asking for user permissions, which is what you might be looking for. But ultimately, I still believe that asking for permission only when it is required is still the way to go.

Sudeep
  • 796
  • 6
  • 16
0

When your app uses push notification, it will be the first to prompt to user for notification access. Notification Access Pop-Up will prompt at the very beginning of App Launch.

You can ask for location access permission on demand using - CLLocationManager requestWhenInUseAuthorization or AlwaysInUseAuthorization.

If you need to access Camera, Photo Library Access just add privacy usage on your info.plist and iOS will ask for permission accordingly on demand.

Shawon91
  • 200
  • 3
  • 9