loup-v / beacons

Flutter beacons plugin for Android and iOS.
Apache License 2.0
78 stars 54 forks source link

Issues with using this plugin in newest version of flutter #28

Open tmello01 opened 5 years ago

tmello01 commented 5 years ago

I was having the same initial errors as defined in issue #1. However, after following the instructions, I now no longer get an error, instead don't get a build at all. The Xcode build time doubled, and now the application hangs on the Install and Launch option.

Flutter version: 1.0 CocoaPods version: 1.5.3

I've attached my pod file if that helps. Podfile.zip

d-wolf commented 5 years ago

You can try this pull request https://github.com/loup-v/beacons/pull/30.

I needed to add this to the info.plist:

<key>NSLocationAlwaysUsageDescription</key>
<string>Reason why app needs location</string>
<key>NSLocationUsageDescription</key>
<string>Reason why app needs location</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Reason why app needs location</string>
<key>UIBackgroundModes</key>
<array>
    <string>fetch</string>
    <string>location</string>
    <string>remote-notification</string>
</array>

In case of a Dart VM error, this should work: https://github.com/flutter/flutter/issues/24641#issuecomment-442920402