Skip to content

[firebase_messaging]: Failed to sync topics. Won't retry sync. FIS_AUTH_ERROR #17865

@Zhamshid

Description

@Zhamshid

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

Messaging

Which platforms are affected?

Android

Description

When trying to subscribe/unsubscribe (on physical Android devices) to a topic receiving this issue
11-21 00:53:33.939 E/FirebaseMessaging(19736): Failed to sync topics. Won't retry sync. FIS_AUTH_ERROR

but in debug mode with emulator, android devices working fine without any problem.When building apk,aab to production or when running with flag release it's receiving this issue

Reproducing the issue

My NotificationController

class NotificationController extends GetxController {
  static FirebaseMessaging? _firebaseMessaging;

  ///[открыт ли экран "заказы"]
  static bool openedOrders = false;

  static String iconPath = '@mipmap/ic_launcher';

  ///[инициялизация 'flutterLocalNotificationsPlugin']
  static final FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin =
      FlutterLocalNotificationsPlugin();

  static AndroidNotificationChannel channel = const AndroidNotificationChannel(
    'high_importance_channel',
    'High Importance Notifications',
    description: 'This channel is used for important notifications.',
    importance: Importance.high,
  );

  ///[настройка фонового уведомления]
  static Future _firebaseMessagingBackgroundHandler(
    RemoteMessage message,
  ) async {
    onShow(message.data);
  }

  ///[]
  void notificationListener() {
    FirebaseMessaging.onMessage.listen((message) async {
      await onMessage(message);
    });
  }

  ///[настройку показа уведомления на 'android']
  NotificationDetails androidNotificationDetails() {
    return NotificationDetails(
      android: AndroidNotificationDetails(
        channel.id,
        channel.name,
        channelDescription: channel.description,
        importance: channel.importance,
        icon: iconPath,
      ),
    );
  }

  ///[действия при получении уведомления]
  Future onMessage(RemoteMessage message) async {
    RemoteNotification? notification = message.notification;
    AndroidNotification? android = message.notification?.android;

    if (notification != null && android != null) {
      showOnAndroid(notification, payload: jsonEncode(message.data));
    }
  }

  ///[показ при открытом приложений если платформа 'android']
  void showOnAndroid(RemoteNotification notification, {String? payload}) {
    flutterLocalNotificationsPlugin.show(
      notification.hashCode,
      notification.title,
      notification.body,
      androidNotificationDetails(),
      payload: payload,
    );
  }

  ///[подписка]
  Future subscribe(String topic) async {
    final talker = Get.find<LogController>().talkerInitialized;
    l.vv('🐞 Подписка на топик $topic');
    talker?.info('🐞 Подписка на топик $topic');

    if (!isValidTopicName(topic)) {
      log('Невалидное имя топика: $topic');
      talker?.error('Невалидное имя топика: $topic');
      return;
    }

    if (topic.trim().isEmpty) {
      log('Топик пустой!');
      talker?.info('Топик пустой!');
      return;
    }

    try {
      log('Подписка на топик "$topic"');
      talker?.log('Подписка на топик "$topic"');
      final future = FirebaseMessaging.instance
          .subscribeToTopic(topic)
          .catchError((e, st) async {
            log('catchError: ошибка при subscribeToTopic: $e');
            talker?.error('Ошибка при subscribeToTopic: $e');
            await Sentry.captureException(e, stackTrace: st);
          });

      await future;
      log('Успешно подписались на "$topic"');
      talker?.log('Успешно подписались на "$topic"');
    } catch (e, stack) {
      log('Ошибка при подписке: $e');
      talker?.error('Ошибка при подписке: $e');
      await Sentry.captureException(e, stackTrace: stack);
    }
  }

  ///[отписка]
  Future unsubscribe(String topic) async {
    final talker = Get.find<LogController>().talkerInitialized;
    l.vv('Отписка от топика "$topic"');
    talker?.info('Отписка от топика "$topic"');

    if (!isValidTopicName(topic)) {
      log('Невалидное имя топика: $topic');
      talker?.error('Невалидное имя топика: $topic');
      return;
    }

    if (topic.trim().isEmpty) {
      log('Топик пустой!');
      talker?.info('Топик пустой!');
      return;
    }

    try {
      l.vv('Отписка от топика "$topic"');
      talker?.log('Отписка от топика "$topic"');
      final future = FirebaseMessaging.instance
          .unsubscribeFromTopic(topic)
          .catchError((e, st) async {
            log('catchError: ошибка при unsubscribeFromTopic: $e');
            talker?.error('Ошибка при unsubscribeFromTopic: $e');
            await Sentry.captureException(e, stackTrace: st);
          });

      await future;
      log('Успешно отписались от "$topic"');
      talker?.log('Успешно отписались от "$topic"');
    } catch (e, stack) {
      log('Ошибка при отписке: $e');
      talker?.error('Ошибка при отписке: $e');
      await Sentry.captureException(e, stackTrace: stack);
    }
  }

  bool isValidTopicName(String topic) =>
      RegExp(r'^[a-zA-Z0-9-_.~%]{1,900}$').hasMatch(topic);

  @override
  void onInit() async {
    super.onInit();
    final talker = Get.find<LogController>().talkerInitialized;
    _firebaseMessaging = FirebaseMessaging.instance;
    await _firebaseMessaging?.getNotificationSettings();
    _firebaseMessaging?.setForegroundNotificationPresentationOptions(
      sound: true,
      alert: true,
      badge: true,
    );

    try {
      talker?.info('Initializing FCM');
      final token = await _firebaseMessaging?.getToken();
      talker?.info('Successfully initialized FCM with token');
      talker?.log(
        'Timestamp: ${DateTime.now().toIso8601String()} FCM Token: $token',
      );
    } catch (e) {
      talker?.error('FCM init error: $e');
    }

    if (Platform.isAndroid) {
      AndroidInitializationSettings initializationSettingsAndroid =
          AndroidInitializationSettings(iconPath);
      InitializationSettings initializationSettings = InitializationSettings(
        android: initializationSettingsAndroid,
      );
      await flutterLocalNotificationsPlugin.initialize(
        initializationSettings,
        onDidReceiveNotificationResponse: (payload) {},
      );
      await flutterLocalNotificationsPlugin
          .resolvePlatformSpecificImplementation<
            AndroidFlutterLocalNotificationsPlugin
          >()
          ?.createNotificationChannel(channel);
    }
    FirebaseMessaging.onMessage.listen((message) async {
      log('onMessage $message');
      onMessage(message);
    });

    FirebaseMessaging.onMessageOpenedApp.listen((event) async {
      log('onMessageOpenedApp ${event.data}');
    });

    SharedPreferences prefs = await SharedPreferences.getInstance();
    final isTest = prefs.getBool('isTestEnv') ?? false;

    subscribe(isTest ? 'testAll' : 'all');

    FirebaseMessaging.onBackgroundMessage(_firebaseMessagingBackgroundHandler);

    FirebaseMessaging.instance.getInitialMessage().then((remoteMessage) {});

    FirebaseMessaging.instance.onTokenRefresh.listen((token) {
      log('FCM token refreshed: $token');
      talker?.log(
        'Timestamp: ${DateTime.now().toIso8601String()} FCM token refreshed: $token',
      );
    });
  }
}

this is how I call the subscription method

final notificationController =
                                                         Get.find<
                                                             NotificationController>();
                                                     final cid = context
                                                             .dependencies
                                                             .tokenStorage
                                                             .getClientId() ??
                                                         -1;
                                                     final topic = isTest
                                                         ? 'newuser$cid'
                                                         : 'newtestUser$cid';

                                                     notificationController
                                                         .subscribe(topic);

final topic like "newuser30524"

Firebase Core version

4.2.0

Flutter Version

3.35.4

Relevant Log Output

flutter doctor -v                                                         ok | at 01:05:12 
[✓] Flutter (Channel stable, 3.35.4, on macOS 26.1 25B78 darwin-arm64, locale en-KZ) [620ms]
    • Flutter version 3.35.4 on channel stable at /Users/zham4e_1/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d693b4b9db (9 weeks ago), 2025-09-16 14:27:41 +0000
    • Engine revision c298091351
    • Dart version 3.9.2
    • DevTools version 2.48.0
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations,
      enable-lldb-debugging

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [3.5s]
    • Android SDK at /Users/zham4e_1/Library/Android/sdk
    • Emulator version 35.4.9.0 (build_id 13025442) (CL:N/A)
    • Platform android-36.1, build-tools 35.0.0
    • ANDROID_HOME = /Users/zham4e_1/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.7+-13880790-b1038.58)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 26.0.1) [2.8s]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 17A400
    • CocoaPods version 1.16.2

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome) [8ms]
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 2025.1) [7ms]
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.7+-13880790-b1038.58)

[✓] VS Code (version 1.106.2) [6ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.122.0

[✓] Connected device (2 available) [7.2s]
    • SM S928B (mobile) • RFCXC0H6G9A • android-arm64 • Android 16 (API 36)
    • macOS (desktop)   • macos       • darwin-arm64  • macOS 26.1 25B78 darwin-arm64
    ! Error: Browsing on the local area network for iPhone (Zhamshid). Ensure the device is unlocked and attached with a cable or associated with the same local area
      network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources [1,039ms]
    • All expected network resources are available.

! Doctor found issues in 1 category.

Flutter dependencies

Expand Flutter dependencies snippet
flutter pub deps -- --style=compact                                       ok | at 01:06:15 
Dart SDK 3.9.2
Flutter SDK 3.35.4
ayan_market 3.0.0+540

dependencies:
- another_flushbar 1.12.32 [flutter]
- app_links 6.4.1 [flutter app_links_linux app_links_platform_interface app_links_web]
- app_tracking_transparency 2.0.6+1 [flutter]
- appmetrica_plugin 3.3.0 [flutter stack_trace logging decimal]
- auto_route 10.2.0 [flutter path web collection meta]
- badges 3.1.2 [flutter]
- bloc_concurrency 0.3.0 [bloc stream_transform]
- cached_network_image 3.4.1 [cached_network_image_platform_interface cached_network_image_web flutter flutter_cache_manager octo_image]
- carousel_slider_plus 7.1.1 [flutter]
- chewie 1.13.0 [cupertino_icons flutter provider video_player wakelock_plus]
- collection 1.19.1
- connectivity_plus 7.0.0 [flutter flutter_web_plugins connectivity_plus_platform_interface web meta nm collection]
- cupertino_icons 1.0.8
- custom_sliding_segmented_control 1.8.5 [flutter]
- decimal 3.2.4 [intl rational]
- dio 5.9.0 [async collection http_parser meta mime path dio_web_adapter]
- drift 2.29.0 [async convert collection meta stream_channel sqlite3 path stack_trace web]
- drift_db_viewer 2.1.0 [db_viewer drift flutter provider]
- expand_hit_test 2.0.0 [flutter flutter_web_plugins web plugin_platform_interface]
- extended_masked_text 3.0.1 [flutter]
- extended_text 15.0.2 [extended_text_library flutter]
- facebook_app_events 0.20.1 [flutter]
- file_picker 10.3.3 [flutter flutter_web_plugins flutter_plugin_android_lifecycle plugin_platform_interface ffi path win32 cross_file web dbus]
- firebase_analytics 12.0.4 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter]
- firebase_core 4.2.1 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_crashlytics 5.0.4 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace]
- firebase_messaging 16.0.4 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta]
- firebase_remote_config 6.1.1 [firebase_core firebase_core_platform_interface firebase_remote_config_platform_interface firebase_remote_config_web flutter]
- floating_bottom_navigation_bar 1.5.2 [flutter]
- floaty_nav_bar 1.0.2 [flutter]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
- flutter_bloc 9.1.1 [bloc flutter provider]
- flutter_cache_manager 3.4.1 [clock collection file flutter http path path_provider rxdart sqflite uuid]
- flutter_inappwebview 6.1.5 [flutter flutter_inappwebview_platform_interface flutter_inappwebview_android flutter_inappwebview_ios flutter_inappwebview_macos flutter_inappwebview_web flutter_inappwebview_windows]
- flutter_instagram_storyboard 1.0.1 [flutter]
- flutter_local_notifications 19.5.0 [clock flutter flutter_local_notifications_linux flutter_local_notifications_windows flutter_local_notifications_platform_interface timezone]
- flutter_localizations 0.0.0 [flutter intl path]
- flutter_native_contact_picker 0.0.11 [flutter plugin_platform_interface]
- flutter_native_splash 2.4.7 [args flutter flutter_web_plugins html image meta path universal_io xml yaml ansicolor]
- flutter_pdfview 1.4.3 [flutter]
- flutter_phoenix 1.1.1 [flutter]
- flutter_rating_bar 4.0.1 [flutter]
- flutter_screenutil 5.9.3 [flutter]
- flutter_staggered_grid_view 0.7.0 [flutter]
- flutter_svg 2.2.2 [flutter http vector_graphics vector_graphics_codec vector_graphics_compiler]
- flutter_xlider 3.5.0 [flutter]
- fluttertoast 9.0.0 [flutter flutter_web_plugins web]
- freezed_annotation 3.1.0 [collection json_annotation meta]
- geolocator 14.0.1 [flutter geolocator_platform_interface geolocator_android geolocator_apple geolocator_web geolocator_windows]
- get 4.7.2 [flutter web]
- grouped_list 6.0.0 [flutter]
- image_picker 1.2.0 [flutter image_picker_android image_picker_for_web image_picker_ios image_picker_linux image_picker_macos image_picker_platform_interface image_picker_windows]
- in_app_review 2.0.11 [flutter in_app_review_platform_interface]
- infinite_scroll_pagination 5.1.1 [flutter flutter_staggered_grid_view sliver_tools collection meta]
- intl 0.20.2 [clock meta path]
- intl_utils 2.8.12 [analyzer archive args dart_style http intl path petitparser yaml]
- intrinsic_dimension 0.3.1 [flutter]
- json_annotation 4.9.0 [meta]
- l 5.0.1 [meta]
- leak_tracker 11.0.2 [clock collection meta path vm_service]
- leak_tracker_flutter_testing 3.0.10 [flutter leak_tracker leak_tracker_testing matcher meta]
- leak_tracker_testing 3.0.2 [leak_tracker matcher meta]
- location 8.0.1 [flutter location_platform_interface location_web]
- logging 1.3.0
- lottie 3.3.2 [archive flutter http path vector_math]
- mask_text_input_formatter 2.9.0 [flutter]
- mindbox 2.14.2 [flutter mindbox_android mindbox_ios mindbox_platform_interface]
- modal_progress_hud_nsn 0.5.1 [flutter]
- open_file_safe_plus 0.0.6 [flutter ffi]
- overlay_progress 0.0.1 [flutter]
- package_info_plus 9.0.0 [ffi flutter flutter_web_plugins http meta path package_info_plus_platform_interface web win32 clock]
- path 1.9.1
- path_provider 2.1.5 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows]
- pedantic 1.11.1
- photo_gallery 0.0.1 [flutter]
- pinput 5.0.2 [flutter universal_platform]
- platform_info 5.0.0 [meta web]
- provider 6.1.5+1 [collection flutter nested]
- pull_to_refresh_flutter3 2.0.2 [flutter]
- pure 0.3.0 [meta]
- qr_code_scanner_plus 2.0.14 [web flutter flutter_web_plugins]
- readmore 3.0.0 [flutter]
- rxdart 0.28.0
- screen_brightness 2.1.7 [flutter screen_brightness_platform_interface screen_brightness_android screen_brightness_ios screen_brightness_macos screen_brightness_windows screen_brightness_ohos]
- sentry_dio 9.8.0 [dio sentry]
- sentry_flutter 9.8.0 [flutter flutter_web_plugins sentry package_info_plus meta ffi collection web jni objective_c]
- sentry_logging 9.8.0 [logging sentry meta]
- share_plus 12.0.1 [cross_file meta mime flutter flutter_web_plugins share_plus_platform_interface file url_launcher_web url_launcher_windows url_launcher_linux url_launcher_platform_interface ffi web win32]
- shared_preferences 2.5.3 [flutter shared_preferences_android shared_preferences_foundation shared_preferences_linux shared_preferences_platform_interface shared_preferences_web shared_preferences_windows]
- shimmer 3.0.0 [flutter]
- sqlite3_flutter_libs 0.5.40 [flutter]
- stomp_dart_client 2.1.3 [web web_socket_channel]
- story_view 0.16.6 [flutter flutter_cache_manager rxdart video_player collection]
- stream_bloc 0.6.0 [meta bloc]
- sum 0.2.0 [meta]
- syncfusion_flutter_barcodes 31.2.5 [flutter syncfusion_flutter_core]
- talker 5.0.2 [talker_logger]
- talker_flutter 5.0.2 [flutter talker group_button path_provider share_plus web]
- toastification 3.0.3 [flutter equatable uuid pausable_timer collection iconsax_flutter http]
- transparent_image 2.0.1
- url_launcher 6.3.2 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows]
- video_player 2.10.0 [flutter html video_player_android video_player_avfoundation video_player_platform_interface video_player_web]
- yandex_geocoder 2.3.1 [collection http json_annotation]
- yandex_mapkit 4.2.1 [flutter_plugin_android_lifecycle equatable collection flutter]

dev dependencies:
- auto_route_generator 10.2.5 [build source_gen analyzer path code_builder dart_style glob lean_builder auto_route]
- build_runner 2.10.1 [analyzer args async build build_config build_daemon built_collection built_value code_builder collection convert crypto dart_style glob graphs http_multi_server io json_annotation logging meta mime package_config path pool pub_semver shelf shelf_web_socket stream_transform watcher web_socket_channel yaml]
- drift_dev 2.29.0 [charcode collection recase meta path json_annotation stream_transform args logging cli_util yaml io drift sqlite3 sqlparser analyzer source_span package_config pub_semver build build_config dart_style source_gen string_scanner]
- flutter_gen 5.12.0 [flutter_gen_core args logging]
- flutter_lints 6.0.0 [lints]
- flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math leak_tracker_flutter_testing collection meta stream_channel]
- freezed 3.2.3 [analyzer build build_config collection meta source_gen freezed_annotation json_annotation dart_style pub_semver]
- json_serializable 6.11.1 [analyzer async build build_config dart_style json_annotation meta path pub_semver pubspec_parse source_gen source_helper]

dependency overrides:
- web 1.1.1

transitive dependencies:
- _fe_analyzer_shared 88.0.0 [meta]
- _flutterfire_internals 1.3.64 [collection firebase_core firebase_core_platform_interface flutter meta]
- analyzer 8.1.1 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
- ansicolor 2.0.3
- app_links_linux 1.0.3 [flutter app_links_platform_interface gtk]
- app_links_platform_interface 2.0.2 [flutter plugin_platform_interface]
- app_links_web 1.0.4 [flutter flutter_web_plugins app_links_platform_interface web]
- archive 4.0.7 [crypto path posix]
- args 2.7.0
- async 2.13.0 [collection meta]
- bloc 9.1.0 [meta]
- boolean_selector 2.1.2 [source_span string_scanner]
- build 4.0.2 [analyzer crypto glob logging package_config path]
- build_config 1.2.0 [checked_yaml json_annotation path pubspec_parse]
- build_daemon 4.1.0 [built_collection built_value crypto http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel]
- built_collection 5.1.1
- built_value 8.12.0 [built_collection collection fixnum meta]
- cached_network_image_platform_interface 4.1.1 [flutter flutter_cache_manager]
- cached_network_image_web 1.3.1 [cached_network_image_platform_interface flutter flutter_cache_manager web]
- characters 1.4.0
- charcode 1.4.0
- checked_yaml 2.0.4 [json_annotation source_span yaml]
- cli_util 0.4.2 [meta path]
- clock 1.1.2
- code_builder 4.11.0 [built_collection built_value collection matcher meta]
- color 3.0.0
- connectivity_plus_platform_interface 2.0.1 [flutter meta plugin_platform_interface]
- convert 3.1.2 [typed_data]
- cross_file 0.3.5 [meta web]
- crypto 3.0.7 [typed_data]
- csslib 1.0.2 [source_span]
- dart_style 3.1.2 [analyzer args collection package_config path pub_semver source_span yaml]
- dartx 1.2.0 [characters collection crypto meta path time]
- db_viewer 1.1.0 [flutter provider]
- dbus 0.7.11 [args ffi meta xml]
- dio_web_adapter 2.1.1 [dio http_parser meta web]
- equatable 2.0.7 [collection meta]
- extended_text_library 12.0.1 [flutter]
- fake_async 1.3.3 [clock collection]
- ffi 2.1.4
- file 7.0.1 [meta path]
- file_selector_linux 0.9.3+2 [cross_file file_selector_platform_interface flutter]
- file_selector_macos 0.9.4+5 [cross_file file_selector_platform_interface flutter]
- file_selector_platform_interface 2.6.2 [cross_file flutter http plugin_platform_interface]
- file_selector_windows 0.9.3+4 [cross_file file_selector_platform_interface flutter]
- firebase_analytics_platform_interface 5.0.4 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_analytics_web 0.6.1 [_flutterfire_internals firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins]
- firebase_core_platform_interface 6.0.2 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 3.3.0 [firebase_core_platform_interface flutter flutter_web_plugins meta web]
- firebase_crashlytics_platform_interface 3.8.15 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_platform_interface 4.7.4 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_web 4.1.0 [_flutterfire_internals firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins meta web]
- firebase_remote_config_platform_interface 2.0.5 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_remote_config_web 1.10.0 [_flutterfire_internals firebase_core firebase_core_web firebase_remote_config_platform_interface flutter flutter_web_plugins]
- fixnum 1.1.1
- flutter_gen_core 5.12.0 [meta path yaml mime xml dartx color collection json_annotation glob logging dart_style archive args pub_semver vector_graphics_compiler image_size_getter image]
- flutter_inappwebview_android 1.1.3 [flutter flutter_inappwebview_platform_interface]
- flutter_inappwebview_internal_annotations 1.2.0
- flutter_inappwebview_ios 1.1.2 [flutter flutter_inappwebview_platform_interface]
- flutter_inappwebview_macos 1.1.2 [flutter flutter_inappwebview_platform_interface]
- flutter_inappwebview_platform_interface 1.3.0+1 [flutter flutter_inappwebview_internal_annotations plugin_platform_interface]
- flutter_inappwebview_web 1.1.2 [flutter flutter_web_plugins web flutter_inappwebview_platform_interface]
- flutter_inappwebview_windows 0.6.0 [flutter flutter_inappwebview_platform_interface]
- flutter_local_notifications_linux 6.0.0 [dbus ffi flutter flutter_local_notifications_platform_interface path xdg_directories]
- flutter_local_notifications_platform_interface 9.1.0 [plugin_platform_interface]
- flutter_local_notifications_windows 1.0.3 [flutter ffi flutter_local_notifications_platform_interface meta timezone xml]
- flutter_plugin_android_lifecycle 2.0.32 [flutter]
- flutter_web_plugins 0.0.0 [flutter]
- frontend_server_client 4.0.0 [async path]
- geolocator_android 5.0.2 [flutter geolocator_platform_interface meta uuid]
- geolocator_apple 2.3.13 [flutter geolocator_platform_interface]
- geolocator_platform_interface 4.2.6 [flutter plugin_platform_interface vector_math meta]
- geolocator_web 4.1.3 [flutter flutter_web_plugins geolocator_platform_interface web]
- geolocator_windows 0.2.5 [flutter geolocator_platform_interface]
- glob 2.1.3 [async collection file path string_scanner]
- graphs 2.3.2 [collection]
- group_button 5.3.4 [flutter]
- gtk 2.1.0 [ffi flutter meta]
- hashcodes 2.0.0
- hotreloader 4.3.0 [collection logging path stream_transform vm_service watcher]
- html 0.15.6 [csslib source_span]
- http 1.5.0 [async http_parser meta web]
- http_multi_server 3.2.2 [async]
- http_parser 4.1.2 [collection source_span string_scanner typed_data]
- iconsax_flutter 1.0.1 [flutter]
- image 4.5.4 [archive meta xml]
- image_picker_android 0.8.13+7 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface]
- image_picker_for_web 3.1.0 [flutter flutter_web_plugins image_picker_platform_interface mime web]
- image_picker_ios 0.8.13+1 [flutter image_picker_platform_interface]
- image_picker_linux 0.2.2 [file_selector_linux file_selector_platform_interface flutter image_picker_platform_interface]
- image_picker_macos 0.2.2+1 [file_selector_macos file_selector_platform_interface flutter image_picker_platform_interface]
- image_picker_platform_interface 2.11.1 [cross_file flutter http plugin_platform_interface]
- image_picker_windows 0.2.2 [file_selector_platform_interface file_selector_windows flutter image_picker_platform_interface]
- image_size_getter 2.4.1 [collection hashcodes meta]
- in_app_review_platform_interface 2.0.5 [flutter url_launcher plugin_platform_interface platform]
- io 1.0.5 [meta path string_scanner]
- jni 0.14.2 [args ffi meta package_config path plugin_platform_interface]
- lean_builder 0.1.2 [_fe_analyzer_shared analyzer args xxh3 path collection meta glob watcher dart_style ansicolor source_span stack_trace frontend_server_client yaml hotreloader]
- lints 6.0.0
- location_platform_interface 6.0.1 [flutter plugin_platform_interface]
- location_web 6.0.1 [flutter flutter_web_plugins http_parser location_platform_interface web]
- matcher 0.12.17 [async meta stack_trace term_glyph test_api]
- material_color_utilities 0.11.1 [collection]
- meta 1.16.0
- mime 2.0.0
- mindbox_android 2.14.2 [flutter mindbox_platform_interface]
- mindbox_ios 2.14.2 [flutter mindbox_platform_interface]
- mindbox_platform_interface 2.14.2 [flutter]
- nested 1.0.0 [flutter]
- nm 0.5.0 [dbus]
- objective_c 8.0.0 [ffi flutter pub_semver]
- octo_image 2.1.0 [flutter]
- package_config 2.2.0 [path]
- package_info_plus_platform_interface 3.2.1 [flutter meta plugin_platform_interface]
- path_parsing 1.1.0 [meta vector_math]
- path_provider_android 2.2.20 [flutter path_provider_platform_interface]
- path_provider_foundation 2.4.3 [flutter path_provider_platform_interface]
- path_provider_linux 2.2.1 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_platform_interface 2.1.2 [flutter platform plugin_platform_interface]
- path_provider_windows 2.3.0 [ffi flutter path path_provider_platform_interface]
- pausable_timer 3.1.0+3 [clock]
- petitparser 7.0.1 [meta collection]
- platform 3.1.6
- plugin_platform_interface 2.1.8 [meta]
- pool 1.5.2 [async stack_trace]
- posix 6.0.3 [ffi meta path]
- pub_semver 2.2.0 [collection]
- pubspec_parse 1.5.0 [checked_yaml collection json_annotation pub_semver yaml]
- rational 2.2.3
- recase 4.1.0
- screen_brightness_android 2.1.3 [flutter screen_brightness_platform_interface]
- screen_brightness_ios 2.1.2 [flutter screen_brightness_platform_interface]
- screen_brightness_macos 2.1.1 [flutter screen_brightness_platform_interface]
- screen_brightness_ohos 2.1.2 [flutter screen_brightness_platform_interface]
- screen_brightness_platform_interface 2.1.0 [flutter plugin_platform_interface]
- screen_brightness_windows 2.1.0 [flutter screen_brightness_platform_interface]
- sentry 9.8.0 [http meta stack_trace uuid collection web]
- share_plus_platform_interface 6.1.0 [cross_file flutter meta mime plugin_platform_interface path_provider uuid]
- shared_preferences_android 2.4.15 [flutter shared_preferences_platform_interface]
- shared_preferences_foundation 2.5.5 [flutter shared_preferences_platform_interface]
- shared_preferences_linux 2.4.1 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface]
- shared_preferences_platform_interface 2.4.1 [flutter plugin_platform_interface]
- shared_preferences_web 2.4.3 [flutter flutter_web_plugins shared_preferences_platform_interface web]
- shared_preferences_windows 2.4.1 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface]
- shelf 1.4.2 [async collection http_parser path stack_trace stream_channel]
- shelf_web_socket 3.0.0 [shelf stream_channel web_socket_channel]
- sky_engine 0.0.0
- sliver_tools 0.2.12 [flutter]
- source_gen 4.0.2 [analyzer async build dart_style glob path pub_semver source_span yaml]
- source_helper 1.3.8 [analyzer source_gen]
- source_span 1.10.1 [collection path term_glyph]
- sqflite 2.4.2 [flutter sqflite_android sqflite_darwin sqflite_platform_interface sqflite_common path]
- sqflite_android 2.4.2+2 [flutter sqflite_common path sqflite_platform_interface]
- sqflite_common 2.5.6 [synchronized path meta]
- sqflite_darwin 2.4.2 [flutter sqflite_platform_interface meta sqflite_common path]
- sqflite_platform_interface 2.4.0 [flutter platform sqflite_common plugin_platform_interface meta]
- sqlite3 2.9.4 [collection ffi meta path web typed_data]
- sqlparser 0.42.0 [meta collection source_span charcode]
- stack_trace 1.12.1 [path]
- stream_channel 2.1.4 [async]
- stream_transform 2.1.1
- string_scanner 1.4.1 [source_span]
- syncfusion_flutter_core 31.2.5 [flutter vector_math]
- synchronized 3.4.0
- talker_logger 5.0.2 [ansicolor web]
- term_glyph 1.2.2
- test_api 0.7.6 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph]
- time 2.1.5 [clock]
- timezone 0.10.1 [http path]
- typed_data 1.4.0 [collection]
- universal_io 2.2.2 [collection meta typed_data]
- universal_platform 1.1.0
- url_launcher_android 6.3.24 [flutter url_launcher_platform_interface]
- url_launcher_ios 6.3.5 [flutter url_launcher_platform_interface]
- url_launcher_linux 3.2.1 [flutter url_launcher_platform_interface]
- url_launcher_macos 3.2.4 [flutter url_launcher_platform_interface]
- url_launcher_platform_interface 2.3.2 [flutter plugin_platform_interface]
- url_launcher_web 2.4.1 [flutter flutter_web_plugins url_launcher_platform_interface web]
- url_launcher_windows 3.1.4 [flutter url_launcher_platform_interface]
- uuid 4.5.2 [crypto meta fixnum]
- vector_graphics 1.1.19 [flutter http vector_graphics_codec]
- vector_graphics_codec 1.1.13
- vector_graphics_compiler 1.1.19 [args meta path path_parsing vector_graphics_codec xml]
- vector_math 2.2.0
- video_player_android 2.8.17 [flutter video_player_platform_interface]
- video_player_avfoundation 2.8.5 [flutter video_player_platform_interface]
- video_player_platform_interface 6.6.0 [flutter plugin_platform_interface]
- video_player_web 2.4.0 [flutter flutter_web_plugins video_player_platform_interface web]
- vm_service 15.0.2
- wakelock_plus 1.4.0 [flutter flutter_web_plugins meta wakelock_plus_platform_interface win32 dbus package_info_plus web]
- wakelock_plus_platform_interface 1.3.0 [flutter plugin_platform_interface meta]
- watcher 1.1.4 [async path]
- web_socket 1.0.1 [web]
- web_socket_channel 3.0.3 [async crypto stream_channel web web_socket]
- win32 5.15.0 [ffi]
- xdg_directories 1.1.0 [meta path]
- xml 6.6.1 [collection meta petitparser]
- xxh3 1.2.0
- yaml 3.1.3 [collection source_span string_scanner]

Additional context and comments

app/build.gradle.kts

import java.io.FileInputStream

plugins {
    id("com.android.application")
    // START: FlutterFire Configuration
    id("com.google.gms.google-services")
    id("com.google.firebase.crashlytics")
    // END: FlutterFire Configuration

    id("kotlin-android")
    // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
    id("dev.flutter.flutter-gradle-plugin")
}

val keystoreProperties = Properties()
val keystorePropertiesFile = rootProject.file("key.properties")

if (keystorePropertiesFile.exists()) {
    FileInputStream(keystorePropertiesFile).use { keystoreProperties.load(it) }
}


configurations.all {
  resolutionStrategy {
    // “Перекрыть” любые 2.7.1 и заставить использовать 2.8.1
    force("androidx.work:work-runtime:2.8.1")
    force("androidx.work:work-runtime-ktx:2.8.1")
  }
}


android {

    if (project.extensions.extraProperties.has("namespace")) {
        namespace = "com.ayan.ayanmarket"
    }
    namespace = "com.ayan.ayanmarket"
    compileSdk = flutter.compileSdkVersion
//    ndkVersion = flutter.ndkVersion
    ndkVersion = "29.0.14206865"
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_11
        targetCompatibility = JavaVersion.VERSION_11
        isCoreLibraryDesugaringEnabled = true
    }

    kotlinOptions {
        jvmTarget = JavaVersion.VERSION_11.toString()
    }

    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId = "com.ayan.ayanmarket"
        // You can update the following values to match your application needs.
        // For more information, see: https://flutter.dev/to/review-gradle-config.
//        minSdk = flutter.minSdkVersion
        minSdk = 26
        targetSdk = 36
        versionCode = flutter.versionCode
        versionName = flutter.versionName
    }

    signingConfigs {
        create("release") {
            keyAlias = keystoreProperties["keyAlias"] as String?
            keyPassword = keystoreProperties["keyPassword"] as String?
            storeFile = keystoreProperties["storeFile"]?.let { file(it) }
            storePassword = keystoreProperties["storePassword"] as String?
        }
    }

    buildTypes {
        release {
            // TODO: Add your own signing config for the release build.
            // Signing with the debug keys for now, so `flutter run --release` works.
//            signingConfig = signingConfigs.getByName("debug")
            signingConfig = signingConfigs.getByName("release")
            isMinifyEnabled = true
            isShrinkResources = true

            proguardFiles(
                getDefaultProguardFile("proguard-android-optimize.txt"),
                file("proguard-rules.pro")
            )
            
        }
    }


    buildFeatures {
        dataBinding = true
        viewBinding = true
    }

    packaging {
        jniLibs {
            useLegacyPackaging = true   // включает сжатие .so в APK
        }
    }
}

flutter {
    source = "../.."
}

dependencies {

    // Yandex Maps implementation
    implementation("com.yandex.android:maps.mobile:4.22.0-full")

    coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")



    // Mindbox Firebase implementation
    implementation("cloud.mindbox:mindbox-firebase")

//    implementation(platform("com.google.firebase:firebase-bom:34.5.0"))

    implementation("com.google.firebase:firebase-messaging:25.0.1")



}

settings.gradle.kts

    val flutterSdkPath = run {
        val properties = java.util.Properties()
        file("local.properties").inputStream().use { properties.load(it) }
        val flutterSdkPath = properties.getProperty("flutter.sdk")
        require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
        flutterSdkPath
    }

    includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")

    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
    }
}

plugins {
    id("dev.flutter.flutter-plugin-loader") version "1.0.0"
    id("com.android.application") version "8.13.0" apply false
    // START: FlutterFire Configuration
    id("com.google.gms.google-services") version("4.3.15") apply false
    id("com.google.firebase.crashlytics") version("2.8.1") apply false
    // END: FlutterFire Configuration
    id("org.jetbrains.kotlin.android") version "2.2.20" apply false
}

include(":app")

I tried everything, took the SHA-1 certificate from the Google Play Console and added it to the firebase.
Deleted all google-services files.json, firebase_options.dart, etc. and configured via flutterfire configre again

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked: customer-responseWaiting for customer response, e.g. more information was requested.platform: androidIssues / PRs which are specifically for Android.plugin: messagingtype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions