Comments (14)
Forcing Flutter to use V2.1.0 fixes the problem for now...
(And if you use the "Geolocator" package, then force both packages to use V2.1.0)
#example code
geolocator: 2.1.0
permission_handler: 2.1.0
Remember to run flutter clean
in the terminal and then get
your .yaml dependencies again before running your app.
from flutter-permission-handler.
Version 2.1.2 works for me, after I updated ios/Podfile
:
target 'Runner' do
use_frameworks! # < ADD THIS
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
...
from flutter-permission-handler.
@muhammadkhayyam, @ahmedb, @562218352, to be able to use version 2.1.2 of the permission handler you'll have to use Xcode 10.1 or higher and make sure you update your Podfile to reflect the following changes:
In your Podfile make sure you add the line use_frameworks! (best is to add this line directly below the target Runner do like so:
target 'Runner' do
use_frameworks!
Also in your Podfile make sure you add the line config.build_settings['SWIFT_VERSION'] = '4.2'
to the post_installer block. After adding this line the post_installer block should look like this:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
config.build_settings['SWIFT_VERSION'] = '4.2'
end
end
end
from flutter-permission-handler.
1: down grade permission_handler's version to 2.1.0
if running into this error : can't find file :<permission_handler/permission_handler-Swift.h> , then go the sec step.
2: open permission_handler source code, find "PermissionHandlerPlugin.m" ,
and edit <permission_handler/permission_handler-Swift.h> into "permission_handler-Swift.h"
solve my issue
from flutter-permission-handler.
Running into the same problem.
from flutter-permission-handler.
the same problem, only in ios .
from flutter-permission-handler.
Same problem, only in IOS.
from flutter-permission-handler.
Same problem on my side, also only in iOS... Any update on this?
from flutter-permission-handler.
@daryll-fourie That worked for me.
from flutter-permission-handler.
I had to downgrade geolocator to 2.0.2 and permission_handler to 2.0.1 to get this to work.
from flutter-permission-handler.
Thank you @daryll-fourie! I should have looked here first!
from flutter-permission-handler.
I had this problem too. The root-cause is actually that the project generated by Flutter is set to "Swift 4.0" by default, instead of "Swift 4.2".
I had a Pull Request to rollback the API changes for compatibility but 4.0, but closed it because I wasn't sure if it was appropriate for the develop
branch.
There are a couple of ways to fix this:
- Manually update your "Runner.xcodeproj" to use "4.2" for "Swift Language Version" (You need to update the Project AND Target)
- Roll back to tag 2.1.0 or pull a fork with the API rollback (I put the changes on my 'develop' fork: https://github.com/ahmedb/flutter-permission-handler)
from flutter-permission-handler.
Dear 562218352 ,
Can you explain in detail your resolution , I am new to mobile development, your detail help will be highly appreciated.
Thanks.
from flutter-permission-handler.
@daryll-fourie That worked for me.
from flutter-permission-handler.
Related Issues (20)
- How to check limited access in Android & IOS. HOT 1
- SMS Permission on iOS: it's unclear if it's necessary to edit Info.plist and eventually how HOT 2
- [Regression]: PlatformException(PermissionHandler.PermissionManager, A requestfor permissions is already runningplease wait for it to finish beforedoing another request (note thatyou can request multiplepermissions at the same time)..null, null) HOT 4
- Not showing permission prompt for microphone and video on web? HOT 2
- [Question]: Upgrading from version 8.1.16 to 11.0.1 HOT 4
- [Regression]: Permission.notification.request() not showing dialog modal Android & iOS HOT 3
- What does it mean to use the photos permission instead of the photos permission? HOT 1
- [Bug]: No such file or directory: 'permission_handler_apple' HOT 2
- [Bug]: com.baseflow.permissionhandler.PermissionManager.onActivityResult java.lang.SecurityException HOT 2
- Execution failed for task ':permission_handler_android:extractDebugAnnotations'. HOT 2
- [Regression]: permissions_handler_html: Failed to execute 'query' on 'Permissions': Failed to read the 'name' property from 'PermissionDescriptor': Required member is undefined. HOT 15
- [Feature request]: [Android] Make it possible to tell if location permission is FINE or COARSE HOT 1
- [Bug]: request() does not return a status on android with targetSdkVersion 34 and flutter 3.24.0 HOT 1
- [Bug]: Null pointer exception on Android when android kills and restarts the activity HOT 3
- [Bug]: permission_handler_html uses `PermissionDescriptor`, which was recently removed from `package:web` HOT 15
- [Feature request]: Flutter V3.24 - Android Compile SDK Version 34 Not Supported HOT 1
- [Feature request]: API LEVEL 34
- [Bug]: Uncaught (in promise) in web HOT 2
- [Bug]: Issue with `Permission.location.request()` Returning `isPermanentlyDenied` on iPhone 13 Mini with iOS 17.5.1 HOT 1
- [Bug]: permissions is already running
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-permission-handler.