Pushjet / Pushjet-Android

The Pushjet android client
BSD 2-Clause "Simplified" License
135 stars 21 forks source link

Ask for permissions (Android 6.0+) #12

Open markhaehnel opened 8 years ago

markhaehnel commented 8 years ago

https://developer.android.com/training/permissions/requesting.html

Beginning in Android 6.0 (API level 23), users grant permissions to apps while the app is running, not when they install the app.

This should be implemented because at the moment i can't scan QR codes.

Mechazawa commented 8 years ago

Great that they just changed this without having any kind of fallback. I'll implement it.

Mechazawa commented 8 years ago

In classic Android fashion the documentation is terrible. It might take a bit longer.

For now you should be able to grant the permissions manually through the application manager. I'm strongly considering doing a rewrite of the app since it was origninally written for an older version of Android (4.1). This has been causing me a lot of issues.

markhaehnel commented 8 years ago

Let me know if you need help when rewriting it. I'm glad to help you with it.

Mechazawa commented 8 years ago

Please, if you don't mind. Right now I'm a quite busy with the start of the acedemic year. I'm kind-of swapped for the coming week(s).

mrtnmtth commented 6 years ago

Updating dependency com.journeyapps:zxing-android-embedded fixes this issue since it adds proper permission support to the library.

Changelog excerpt:

3.1.0 (2015-12-29)

  • Add support for Android 6 runtime permissions (Camera only).
setiseta commented 6 years ago

something new on this?