Tracking iOS Permission Request Alerts

det2020

02-10-2020

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

AEP SDK alert implementation tracking

Accepted Solutions (1)

Accepted Solutions (1)

steve_benedick

Employee

02-10-2020

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

Answers (1)

Answers (1)

Ivan_Mironchuk

Employee

02-10-2020

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