flutter-permission-handler
flutter-permission-handler copied to clipboard
Dont work Permission_handler in release mode
🐛 Bug Report
Expected behavior
that such currently in debug mode works perfectly but at the moment of launching a release the allow_handler is totally without response
Reproduction steps
Build apk install apk Freezing
Configuration
Version: 1.x permission_handler: ^5.0.1+1
Platform:
- [ ] :iphone: iOS
- [x ] :robot: Android
Example :
i have this logs in debug mode all execute correctly
but in release mode
nothing returns
I am having the same issue! Everything works in debug mode (android simulator & syncing app too my iPhone) but not when I upload to AppStore.
Same issue here!
help ?
Any news or suggestions to try?
Any news or suggestions to try?
try to do that in gradle.properties android.enableR8=true change to android.enableR8=false
Same problem, works perfectly in debug mode, no response in release mode.
try to do that in gradle.properties android.enableR8=true change to android.enableR8=false
thank you so much!!! I was searching for two days for any possible solutions, and was the only way that worked on my project.
It looks like it's some problem with minification/shrinking/ProGuard.
Solved it with:
minifyEnabled false
useProguard false
shrinkResources false
added to release build type in android/app/build.gradle
.
Same issue. Using Visual Studio Code.
android.enableR8=false doesn't work.
I don't use proguard.
Please advise,
this should solve
1- change this in android/gradle.properties org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true
2- add this in android/app/build.gradle buildTypes { release { minifyEnabled false useProguard false shrinkResources false } }
3 - (optional) my versions in android/app/build.gradle compileSdkVersion 30 minSdkVersion 21 targetSdkVersion 30
4 - version of the package i use permission_handler: ^5.1.0+2
2- add this in android/app/build.gradle buildTypes { release { minifyEnabled false useProguard false shrinkResources false } }
work fine Thanks
I tried to reproduce the same issue by running the example app in release mode on a Samsung S20 FE (Android 11), I could not reproduce the issue though, the app didn't freeze. I used the newest version of the plug-in (version: ^6.1.1). Please let us know if the solutions mentioned here above don't work and this is still an issue that occurs. Thanks in advance!
Without additional information, we are unfortunately not able to resolve this issue. Therefore, we reluctantly closed this issue for now. If you run into this issue later, feel free to file a new issue with a reference to this issue. Add a description of detailed steps to reproduce, expected and current behaviour, logs and the output of 'flutter doctor -v'. Thanks for your contribution.