doomsower/react-native-yandexmapkit

Can't load tiles

Closed this issue · 10 comments

What should I add to Info.plist
Now I have

<key>NSAppTransportSecurity</key>
	<dict>
		<key>NSExceptionDomains</key>
		<dict>
			...
			<key>yandex.net</key>
			<dict>
				<key>NSExceptionAllowsInsecureHTTPLoads</key>
				<true/>
				<key>NSExceptionRequiresForwardSecrecy</key>
				<false/>
				<key>NSIncludesSubdomains</key>
				<true/>
			</dict>
		</dict>
	</dict>

I just tried this config and it works for me. However, when I removed all ATS keys from Info.plist, in Instruments I saw a request to yandex.ru subdomain, maybe adding it to exceptions will solve the problem?

@doomsower
I add

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

but got this
iphone 5 ios 10 1 14b72 2016-11-03 17-43-35

Ok, are you sure you're passing YMK API key before you mount react component?

@doomsower yes, I'm sure

I'm running out of ideas. Does your project work on Android device (not emulator)? Can you make example project work with your API key?

@doomsower checking on android and ios simulators. I will check on real devices

@doomsower same result on real device

What about example project?

@doomsower ok, i'll make example project

@doomsower I missunderstand map api key and mapkit api key