Contents

0. Overview

BK UK would like to perform in Q4-2024 a campaign based on guest phone battery life.

Once a BK App guest’s phone battery gets down to a low %, we trigger them an offer for a free of Monster Drink. When the guest charges their phone the offer will disappear from the Offers Page.

We don’t need to store battery level information, we need to create a capability to read this info during user navigation and when our app is running in the background.

1. Business Requirements

During the campaign period, a special offer will be sent over to sign-in users whose phone battery gets down to a low %. When the user is navigating throughout the app and his battery level is below x%, we will trigger a special offer and an In-App message will be sent to notify the user about this offer. The battery level will also check when the App is running in the user’s device background. The offer will be available to redeem only once per day or week. If the user fulfills the expected battery level, gets the offer but ends up not redeeming it; then, if the user has low battery again and fulfills the expected battery level he will see the offer once more.

2. Tech Requirements

2. Sanity - Offer configuration

The new ruleset will allows us to show an offer to the guest, only if that user has user attributes that fulfill the rules set in Sanity.

Go to Loyalty > Offers > Systemwide Offers, select the Rule Set User Attribute and then choose the attribute Battery Level.

Screenshot 2024-07-26 at 11.54.59.png

 

Screenshot 2024-07-26 at 11.55.11.png

 

Screenshot 2024-07-26 at 11.55.32.png

 

Screenshot 2024-07-26 at 11.55.44.png

 

Screenshot 2024-07-26 at 11.55.51.png

3. Braze In-App Notification setup

Based on Update User Attributes event, select Battery Level and input the value to be checked.

Screenshot 2024-10-16 at 10.28.59.png

3. Tests in Staging

  1. Offer setup in Staging

Screenshot 2024-10-16 at 17.31.13.png

  1. UDID to test App Staging

  2. Braze Notification (e-mail)

#

Scenarios

Test Steps

Test Result

Notes

1

The guest signs-in and it is navigating in the app and his phone has the battery level > 30%, so no special offer will be triggered.

  1. User is opens the App, logged in and navigating

  2. User’s device iOS or Android has more than 30% of battery

  3. Special offer is not available on the Offers Page

PASS

2

The guest not signs-in and it is navigating in the app and his phone has the battery level <= 30%

  1. User is opens the App, it not logged in and navigating

  2. User’s device iOS or Android has <= 30% of battery

  3. Special offer will be available on the Offers Page, but when the clicks on the offer, we prompt him to Sign Up/Sign In to redeem the offer when the user is not logged.

PASS

25/10: Mohammed, Akhil (Deactivated) can you please re-test this scenario and add a video? Thank you (smile)
Akhil: Re-tested and it is PASS

ScreenRecording_10-25-2024 18-18-12_1.MP4

Offer is available for NOT signed In User and User able to navigate to Sign up screen as expected

3

The guest signs-in and it is navigating in the app and his phone has the battery level <= 30%.
The special offer will be available on the Offers Page.

The guest will receive an In-App message or the guest can access directly the Offers Page.

The guest does not redeem the offer.

The guest charges their phone and the offer will disappear from the Offers Page.

  1. User opens the App and navigating

  2. User’s device iOS or Android has <= 30% of battery

  3. User gets the special offer via In-App message via Braze notification (due to latency the user can get the message after some minutes)

  4. When the guest clicks on the message sent by Braze, the Offers Page is opened and the special offer will be available.

  5. User can directly access the Offers Page and the special offer will be available.

  6. User does not redeem the offer

  7. User charges his phone to 100%

  8. The offer will disappear from the Offers Page.

PASS

In-App message are not received. We tested navigating directly to Offers section.

4

The guest signs-in and it is navigating in the app and his phone has the battery level <= 30%.
The special offer will be available on the Offers Page.

The guest will receive an In-App message or the guest can access directly the Offers Page.

The guest redeem the offer.

In the same day, the guest charges his phone to 100% and opens the app again. The special offer will be not show in the app because the guest already redeem the offer in the same day.

  1. User opens the App and navigating

  2. User’s device iOS or Android has <= 30% of battery

  3. User gets the special offer via In-App message via Braze notification (due to latency the user can get the message after some minutes)

  4. When the guest clicks on the message sent by Braze, the Offers Page is opened and the special offer will be available.

  5. User can directly access the Offers Page and the special offer will be available.

  6. User redeem the offer

  7. User charges his battery to 100%

  8. Some hours later, user’s device iOS or Android has <= 30% of battery

  9. User opens the app and the special offer will not triggered twice because he has redeemed the offer the first time it showed

FAIL

ScreenRecording_10-25-2024 17-02-53_1.MP4

File (43)-20241025-111331.jpg

User able to see the offer even after redeem in restaurant.
For Mobile orders continue button is not working at check out screen for STG (Issue exist for all items)

5

The guest signs-in, opens the app, navigating and move to another app.

BK app is running in the background and the battery level is still checking by our app each 10 minutes for iOS and 15 minutes for Android.

The guest has the battery level > 30%, so no local notification will be triggered and no special offer will be available on the Offers Page.

  1. User is logged in, opens the App and navigating and move to another app

  2. BK App is running in the background checking the battery level (each 10min iOS/ 15min Android)

  3. User’s device iOS or Android has more than 30% of battery

  4. Local notification is not triggered

  5. Offer is not available

PASS

7

The guest signs-in, opens the app, navigating and move to another app.

BK app is running in the background and the battery level is still checking by our app each 10 minutes for iOS and 15 minutes for Android.

The guest has the battery level <= 30%.

The local notification will be triggered and when the guest clicks on the notification, we will redirect him to the Offers Page.

The special offer will be available on the Offers Page.

The guest does not redeem the offer.

The guest charges their phone and the offer will disappear from the Offers Page.

  1. User’s device iOS or Android has <= 30% of battery

  2. User receives a local notification

  3. User clicks on the local notification and he is redirecting to the Offers Page

  4. The special offer will be available

  5. User does not redeem the offer

  6. User charges his phone to 100%

  7. The offer will disappear from the Offers Page

PASS

8

The guest signs-in and it is navigating in the app and his phone has the battery level <= 30%.
The special offer will be available on the Offers Page.

The local notification will be triggered and when the guest clicks on the notification, we will redirect him to the Offers Page.

The special offer will be available on the Offers Page.

The guest redeem the offer.

In the same day, the guest charges his phone to 100%, the local notification will be not triggered and no special offer will be available on the Offers Page.

  1. User’s device iOS or Android has <= 30% of battery

  2. User receives a local notification

  3. User clicks on the local notification and he is redirecting to the Offers Page

  4. The special offer will be available

  5. User redeem the offer

  6. User charges his battery to 100%

  7. The offer will disappear from the Offers Page

  8. The local notification will be not triggered

  9. Some hours later, user’s device iOS or Android has <= 30% of battery

  10. User receives a local notification

  11. User clicks on the local notification and he is redirecting to the Offers Page

  12. The special offer will not triggered twice because he has redeemed the offer the first time it showed

FAIL

User able to see the offer even after redeem in restaurant.
For Mobile orders continue button is not working at check out screen for STG (Issue exist for all items)