Expand my Community achievements bar.

SOLVED

Tracking iOS Permission Request Alerts

Avatar

Level 1

Is the AEP Mobile SDK capable of tracking user selections within system alerts?

For instance, can trackAction be called on the location permission options depicted in this screenshot? (i.e. "Allow While Using App", "Allow Once", "Don't Allow")

 Screen Shot 2020-10-02 at 2.52.47 PM.png

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee

Hey @det2020 -

Most of the time a user's selection on OS prompts like requesting for permission will result in a call to a delegate method that the developer controls. 

In the case of location permission, the CLLocationManagerDelegate will be notified via the locationManagerDidChangeAuthorization: method.

In a delegate method like that, you can invoke any AEP Mobile SDK method you'd like.

Hope this helps!

-steveb

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

Hey @det2020 -

Most of the time a user's selection on OS prompts like requesting for permission will result in a call to a delegate method that the developer controls. 

In the case of location permission, the CLLocationManagerDelegate will be notified via the locationManagerDidChangeAuthorization: method.

In a delegate method like that, you can invoke any AEP Mobile SDK method you'd like.

Hope this helps!

-steveb

Avatar

Employee Advisor

Another helpful hint -> The Places extension holds the authorization status for a user in the extension's shared state. This shared state can be added as a Data Element in launch so that you can include the status in various workflows. 

 

The first image below shows how you can define a Data Element for Auth Status. The second image shows that you can use any data element in Launch workflows as a condition or part of an action (i.e. post back). 

 

How would this be valuable in a workflow? Let's say you want to optimize features in the app for users that have enabled location features. You can use the auth-status to create a segment for these users that can be used for messaging or to change the experience in the app. 

 

image.png

image.png