universal_ble icon indicating copy to clipboard operation
universal_ble copied to clipboard

How did you make example working on iOS without modify post_install section

Open Wicz3k opened this issue 10 months ago • 4 comments

Hi I tried to add your lib to my project, but on iOS It was impossible without modify of post_install section of Podfile like this:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)

    target.build_configurations.each do |config|
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
        '$(inherited)',

        ## dart: PermissionGroup.bluetooth
        'PERMISSION_BLUETOOTH=1',
      ]

    end
  end
end

How your example works without this?

Wicz3k avatar Apr 08 '24 13:04 Wicz3k

@Wicz3k have you added Privacy - Bluetooth Always Usage Description in your info.plist?

fotiDim avatar Apr 08 '24 20:04 fotiDim

@fotiDim Yes, I set this and also Bluetooth peripheral usage description. Only when I read about Permission handler I found information about modify post install section

Wicz3k avatar Apr 09 '24 07:04 Wicz3k

What you refer to is permission_handler specific configuration. The bluetooth permission will be requested without permission_handler as long as you have the info.plist entry, which I mentioned.

fotiDim avatar Apr 09 '24 13:04 fotiDim

@Wicz3k can this be closed? Do you need any more help?

fotiDim avatar Apr 29 '24 18:04 fotiDim