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

Add home screen widget for Android app #8

Merged
merged 12 commits into from
Apr 29, 2020
Merged

Conversation

ilpork
Copy link
Owner

@ilpork ilpork commented Apr 27, 2020

Adds widget for Android app to show three measurement values on home screen. The information to be shown is selected in Options page of the app. Visibility of summary page items is now also set on Options page, which has now three tabs (general, summary page and widget options).

Widget uses same data service as the LocationListViewModel to get the data. Update interval is 1 hour and widget can also be updated manually by tapping it.

Fixes #7

It's more usable to have all items list in one list, and this also allows adding separate tab to configure visibility of items in widget.

Xamarin.Shell is used to present the tabs, so some things related to styles had to be updated too.
The tab is used to select which items are shown in app widget. Currently the content is very similar to that of summary options tab, but in future they both will likely get unique options too.
It makes XAML lighter and allows using same functionality from widget
@ilpork
Copy link
Owner Author

ilpork commented Apr 29, 2020

It seems that Android widget updating is quite shaky nowadays (due to different kind of power saving functionality affecting what apps can do on background). Manual update by tapping is one workaround. Need to look more into this later.

@ilpork ilpork changed the title Add home screen widget to Android app Add home screen widget for Android app Apr 29, 2020
@ilpork ilpork merged commit 48308a3 into master Apr 29, 2020
@ilpork ilpork deleted the feat/add-android-widget branch April 29, 2020 17:44
@ilpork ilpork mentioned this pull request Apr 29, 2020
@ilpork ilpork added the Vahti.Mobile Related Vahti mobile app label May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Vahti.Mobile Related Vahti mobile app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add widget for Android app
1 participant