0
votes

I am trying to use the Settings bundle to set a couple of preferences for my app, that including allowing access to my Location and to configure Notifications. Many apps seem to have a "standard" way of displaying this on a child pane that includes:

  1. A standard icon for Location or Notifications.
  2. Common verbiage for the setting details.

I cannot find any documentation on how to wire this up in the settings bundle, or any tutorials and am looking for assistance. I am surprised that I cannot even point at an icon for each setting, but since so many apps do this I am SURE I am missing something obvious.

ETA: For an example of what I am talking about, if you look at the Starbucks app there is a setting for Location and Notifications, and that same look-and-feel can be found in many other apps.

Thanks in advance.

1

1 Answers

1
votes

If you request location or notification permissions then an entry will automatically be created in the Settings app, under your application name, with the "standard" presentation.

Here is a screen shot of my app after making the necessary requests:

[self.locationManager requestAlwaysAuthorization];
[[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:UIUserNotificationType categories:nil]];

A view of the location and notification settings.