Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elm-ify the push notifications code #71

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

iancanderson
Copy link
Owner

This removes the JS code that currently backs push notifications in favor of using the Alert and PushNotificationIOS modules that I'm working on contributing to elm-native-ui: ohanhi/elm-native-ui@master...thoughtbot:ia-push-notifications-ios

The behavior should be the same as before:

  • If we've never pre-prompted a user about push notifications, show them a pre-prompt dialog
  • If they accept, show them the system permissions dialog
  • If they accept that, record their device token in AsyncStorage
  • If they already have a stop selected:
    • Upsert their installation record on the backend so we can send a push notification to the device in the future
  • If they don't have a stop selected, we wait until they select a stop to upsert their installation record

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant