Skip to content

Instantly share code, notes, and snippets.

@tmbtech
Last active August 7, 2018 18:11
Show Gist options
  • Select an option

  • Save tmbtech/8e05dd8b94c49f0d4db143070866e477 to your computer and use it in GitHub Desktop.

Select an option

Save tmbtech/8e05dd8b94c49f0d4db143070866e477 to your computer and use it in GitHub Desktop.
Select Platform - Alert Notifications
Select Platform - Alert Notifications
iOS -> iOS
Android -> Android
iOS
Select Screen - iOS
open onBoarding Screen -> onBoarding - iOS
open Alerts Screen -> Alerts Screen - iOS
onBoarding - iOS
onEnableAlerts -> show allow alerts prompt
onNotNow -> device level none and app level opt-out
Alerts Screen - iOS
if device level on -> Continie using screen
if device level off -> Show prompt go to settings
if device level none -> show allow alerts prompt
show allow alerts prompt
onAllow -> device level on and app level opt-in
onDismiss -> device level off and app level opt-out
Android
Select Screen - Android
open onBoarding Screen -> onBoarding - Android
open Alerts Screen -> Alerts Screen - Android
onBoarding - Android
onEnableAlerts -> device level on and app level opt-in
onNotNow -> device level on and app level opt-out
Alerts Screen - Android
if device level on -> Continie using screen
if device level off -> Show prompt go to settings
Continie using screen
Show prompt go to settings
Alerts
device level on and app level opt-in
device level on and app level opt-out
device level off and app level opt-out
device level none and app level opt-out
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment