mvmike / min-cal-widget

Minimal calendar widget
BSD 3-Clause "New" or "Revised" License
89 stars 15 forks source link

Grant permission on first use without throwing away widget #10

Closed mvdan closed 7 years ago

mvdan commented 8 years ago

First-time users will be puzzled by how the widget is lost when they give the app permission to access their calendar, having to go to the widgets screen again.

There has to be a better way to do this.

mvdan commented 8 years ago

The widget isn't lost now, but something worse happens. You can test this by removing the permission, uninstalling and reinstalling again. Reinstalling is probably not needed, though.

First, the permission isn't granted until you click on it. Many users will not figure this out and will wonder why the calendar is empty.

Then, even if you do click, the widget does not refresh itself and you have to re-add it to the home screen for it to work properly with events.

mvmike commented 8 years ago

Agree that initial way of asking for permissions is better.

However, tried to follow the google sample for asking permissions in runtime without success, having in mind to ask for permissions in first widget press and force redraw and launch calendar once we have a response.

May be related to similar problems found in stack overflow or similar apps.

Would not consider downgrading target sdk, though.