# Local Reward Notifications ## Pre-Requisite * **Device Permissions** * Notification permissions - Already in place in onboading * Location permission - Always * **Radar SDK's geofence api integrations to DSG/GG app** * **Athlete should be signed in state** * **Athlete should have active rewards in account to get local rewards notifications** ## Flows * **Flows to address/onboard athlete to device permissions** * Flows to ask Location Permissions always for existing Athletes * Under account setting, We can have In-Store Promotions sections, where we can add row to ask location always permission <img src="https://i.imgur.com/A7ibySO.png" width="200" /> <img src="https://i.imgur.com/YIyabhW.png" width="200" /> * * Flows to ask Location Permissions both while in use and always * On onboarding, ask for while in use location permission and next page could be in store promotion onboarding where we can ask for location always permissions. * Under account setting, we would have locations permission sections to ask again if nothing opt in while onboarding. <img src="https://i.imgur.com/fMUcFV4.jpg" width="200" /> * **Flow to show local reward notifications in store geofence** * Once Athlete store geofence, Radar geofence event notify app with event details and app makes api calls to get rewards details, if rewards are active then sends local reward notification to device. * We can also integrate store info api to get store info and show store name on notification, * Error handling, <span style="color:red"> if api fails then we can show general DSG/GG store welcome message on notification or skip any store related messages on notifications </span> * Proper api error handling - <span style="color:red"> if reward api fails then no local reward notification going to send </span> * We can also integrate 3x rewards api to surface 3x rewards details on local notification, can be done post MVP * Error handling - <span style="color:red"> if api fails, no 3x rewards details on local notifications </span> <img src="https://i.imgur.com/m3rInuD.jpg" width="200" /> * **Flow on tapping reward notifications** * On tapping notification, if athlete's in store geofence, app will launch in store mode and show store mode landing page where we show rewards. * On tapping notification, if athlete's not in store geofence, app will launch in regular mode and redirect to account -> rewards page. ## Questions * What should be UI under account to ask for device Notifications/Location permission for existing/new Athletes? * What reward info needs to show on notification, rewards amount etc..? * what's onboarding screen UI for in-store promotions/Local rewards notification?