An approach to present sequential permission requests on iOS8.
- LocalNotifications - Required: Helper function in AppDelegate required for callback
- LocationServicesAlways - Required: NSLocationAlwaysUsageDescription entry in plist
- Calendar
- Reminders
-
Add Helper functions if required – see Supported Permission Types
-
Setup PermissionsCenter with background view for Request Button
PermissionsCenter.shared.setup(headerView)
-
Add Permissions to monitor
PermissionsCenter.shared.addPermission(PermissionType.LocalNotifications) PermissionsCenter.shared.addPermission(PermissionType.LocationServiceAlways) PermissionsCenter.shared.addPermission(PermissionType.Calendar) PermissionsCenter.shared.addPermission(PermissionType.Reminders)
-
Check Permissions
PermissionsCenter.shared.check()
A button centered on the background view. When there is an ongoing permission request it pulses.