Skip to content

Implemented Procedure Push Updates using Firebase Cloud Messaging#2

Open
dsu1995 wants to merge 7 commits intoSanaMobile:masterfrom
echo-crew:push_notification_receiving
Open

Implemented Procedure Push Updates using Firebase Cloud Messaging#2
dsu1995 wants to merge 7 commits intoSanaMobile:masterfrom
echo-crew:push_notification_receiving

Conversation

@dsu1995
Copy link
Copy Markdown

@dsu1995 dsu1995 commented Mar 14, 2018

Implemented receiving procedure pushes from Sana Protocol Builder.
The Protocol Builder sends a push notification to the Android app containing a URL to fetch the full procedure XML file from. The Android app then makes an HTTP request to the URL to get the procedure, and saves it locally.
When pushes of different versions of the same procedure are made, only one version (the last version that is pushed) is kept on the phone's database.

Note: bumped up minSdkVersion from 11 to 14 in order to support Firebase Cloud Messaging. This is still compatible with 99.7% of all Android users as of March 2018 (source: https://developer.android.com/about/dashboards/index.html).

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