nitaliano / react-native-mapbox-gl

A Mapbox GL react native module for creating custom maps
Other
2.16k stars 697 forks source link

MGLMapboxMetricsEnabledSettingShownInApp=YES not being seen in Info.plist #1431

Closed binaryminutia0l closed 5 years ago

binaryminutia0l commented 5 years ago

I've added MGLMapboxMetricsEnabledSettingShownInApp=YES in my app's Info.plist:

...
<key>NSLocationWhenInUseUsageDescription</key>
<string/>
<key>MGLMapboxMetricsEnabledSettingShownInApp</key>
<true/>
<key>NSAppTransportSecurity</key>
...

But when I use attributionEnabled={false} with a MapView I still get the error that it is required:

screenshot 2018-11-21 at 14 06 52
systemlevel commented 5 years ago

@sfyfe31 It needs to be a boolean value. Not a <string/>.

ospfranco commented 5 years ago

Cleaning the project and doing a fresh build solved my problem, the property seems to be recognized just fine