-
Notifications
You must be signed in to change notification settings - Fork 3
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
ask location permission (fixes #43, #45, #48, #51) #46
Conversation
…kVersion to 31 in correct build.gradle file
…kVersion and targetSdkVersion to 31 in correct build.gradle file
permission_handler can be upgraded back to 8.2.5 again once we fix #47 |
new permissions called BLUETOOTH_SCAN and BLUETOOTH_CONNECT is needed for Android 12 https://developer.android.com/guide/topics/connectivity/bluetooth/permissions?hl=sl&skip_cache=true |
flutter pub upgrade can be removed if it causes problems in the future
ios/Podfile
Outdated
installer.pods_project.targets.each do |target| | ||
flutter_additional_ios_build_settings(target) | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ComputerOnFire we need to add permission here as well , other wise it will not work in IOS
eg:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
... # Here are some configurations automatically generated by flutter
# You can enable the permissions needed here. For example to enable camera
# permission, just remove the `#` character in front so it looks like this:
#
# ## dart: PermissionGroup.camera
# 'PERMISSION_CAMERA=1'
#
# Preprocessor definitions can be found in: https://github.com/Baseflow/flutter-permission-handler/blob/master/permission_handler/ios/Classes/PermissionHandlerEnums.h
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
'PERMISSION_LOCATION=1',
]
end
end
end
…nal into permissions
Asks the user for permission to use location and bluetooth on app start. Uses the permission_handler flutter pub.
android:exported
be defined when intent filters are present #48