Skip to content

Permissions are not working #225

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

Closed
codeanticode opened this issue Jun 12, 2016 · 2 comments
Closed

Permissions are not working #225

codeanticode opened this issue Jun 12, 2016 · 2 comments
Assignees
Labels

Comments

@codeanticode
Copy link
Contributor

codeanticode commented Jun 12, 2016

This sketch uses GPS location, but even after enabling both the ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION permissions from the mode, it crashes with the following error:

06-12 12:30:31.265  2171  2171 E AndroidRuntime: java.lang.RuntimeException: Unable to resume activity {processing.test.gps_example/processing.test.gps_example.MainActivity}: java.lang.SecurityException: "network" location provider requires ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission.

VIBRATE permission also crashes a watch face with the following error:

06-13 19:11:02.123  3308  3308 E AndroidRuntime: java.lang.SecurityException: Requires VIBRATE permission

although it was set in the manifest file.

@codeanticode codeanticode self-assigned this Jun 12, 2016
@codeanticode codeanticode added this to the 3.0.1 bugfix release milestone Jun 12, 2016
@codeanticode
Copy link
Contributor Author

The problem with watch faces has been fixed with 38193ce, however the other errors happen on Android 6.0, and are due to the new dangerous permissions in 6.0, which require the users to accept the permissions [during runtime](Requesting Permissions at Run Time).

@codeanticode
Copy link
Contributor Author

Fixed in 3.0.1 with 43b8ef6

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

No branches or pull requests

1 participant