Skip to content
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

MissingPluginException(No implementation found for method initSession on channel yandex mapkit/yandex_search) #375

Open
MrErkinjon opened this issue Jun 23, 2024 · 2 comments
Labels
question Further information is requested

Comments

@MrErkinjon
Copy link

......pubspec.yaml..........
environment:
sdk: '>=3.2.2 <4.0.0'
dependencies:
yandex_mapkit: ^4.1.0
.......

........ Code ........
Future<String?> getPlaceMarkFromYandex(Point? position) async {
SearchSessionResult? resultWithSession;
if (position != null) {
resultWithSession = await (await YandexSearch.searchByPoint(point: position, searchOptions: const SearchOptions(searchType: SearchType.none, geometry: false))).$2;
}
var address = (resultWithSession)?.items?.first.toponymMetadata?.address.addressComponents.formatAddressYandex();
return address;
}
............
Error
I/flutter (27604): MissingPluginException(No implementation found for method initSession on channel yandex_mapkit/yandex_search)
I/flutter (27604): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:320:7)
I/flutter (27604):
I/flutter (27604): #1 YandexSearch._initSession (package:yandex_mapkit/src/yandex_search.dart:36:5)
I/flutter (27604):
I/flutter (27604): #2 YandexSearch.searchByPoint (package:yandex_mapkit/src/yandex_search.dart:27:21)
I/flutter (27604):
I/flutter (27604): #3 getPlaceMarkFromYandex (package:al_mansur_driver/utils/utils.dart:908:32)
I/flutter (27604):

@78Ronin78
Copy link

У меня такая же проблема, только на стороне iOS. С Android все норм(ОК).

@DCrow
Copy link
Collaborator

DCrow commented Jul 18, 2024

Добрый день!

Проверите корректно ли указаны ENV['YANDEX_MAPKIT_VARIANT'] и yandexMapkit.variant в вашем проекте. Если они не указаны, то необходимо проставить значение full.

@DCrow DCrow added the question Further information is requested label Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants