Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Tracking iOS Permission Request Alerts

det2020
Level 1
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

AEP SDK alert implementation tracking
1 Accepted Solution
steve_benedick
Correct answer by
Employee
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
steve_benedick
Correct answer by
Employee
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

Ivan_Mironchuk
Employee
Employee

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