Closed AdelDaniel closed 1 year ago
Hi @AdelDaniel, I'm curious if you change the applicationId for android, is it regenerated when you generate a new google-services.json
file? Or is this specifically an iOS issue?
Also did you setup the project manually initially or did you use flutterfire configure
?
Hi @danagbemava-nc
No, we didn't change the application_id
we run flutterfire and the bundle_id changed automatically in the google-services.json
the project is old. We started it manually, after that we started to use flutterfire
Hi @AdelDaniel, I just want to confirm something.
The google_services file that has the issue, is it one that you download from the firebase console or is it the one generated by flutterfire_configure
?
Can you also share the full google_services.json
(before flutterfire configure and after) file with the sensitive parts redacted?
Hi @danagbemava-nc
before flutterfire
{
"project_info": {
"project_number": "",
"firebase_url": "com",
"project_id": "",
"storage_bucket": ""
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:1",
"android_client_info": {
"package_name": "com. "
}
},
"oauth_client": [
{
"client_id": " apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": " "
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": " .apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
{
"project_info": {
"project_number": "",
"firebase_url": "com",
"project_id": "",
"storage_bucket": ".com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:",
"android_client_info": {
"package_name": "com. . "
}
},
"oauth_client": [
{
"client_id": ".googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com. . ",
"certificate_hash": ""
}
},
{
"client_id": ".googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": " "
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": " apps. .com",
"client_type": 3
},
{
"client_id": " apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "com. ." // the problem is here
}
}
]
}
}
}
],
"configuration_version": "1"
}
Hi @AdelDaniel, I just want to confirm something. If you download the google_services.json file from the firebase console, does it have the updated bundle id?
Are the apps with the new bundled ids also registered on the console?
Yes, when I download it manually from the console. I still get the old bundle_id one "com.example.yyyyyyyyyyy" >> deleted form the project
the second question. I am currently using only one IOS app in this project, and its bundle_id doesn't appear in the google_services.json
file.
Hi @AdelDaniel, this seems like an issue with firebase itself and not the plugins. Ideally, the google_services.json
file should not affect your iOS project since the configuration will be taken from the GoogleService-Info.plist
. Is there any particular issue with the bundle id in the google_services.json
not matching the iOS bundle id?
Bug report
In my Flutter app project, the "bundle_id" that exists in the "google-services.json" is not the same as CFBundleIdentifier in info.plist and BUNDLE_ID in the "GoogleService-Info.plist"
Describe the bug
"google-services.json"
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
``` [β] Flutter (Channel stable, 3.7.7, on Microsoft Windows [Version 10.0.19044.2728], locale en-US) [β] Windows Version (Installed version of Windows is version 10 or higher) [β] Android toolchain - develop for Android devices (Android SDK version 33.0.1) [β] Chrome - develop for the web [X] Visual Studio - develop for Windows X Visual Studio not installed; this is necessary for Windows development. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components [β] Android Studio (version 2021.3) [β] VS Code (version 1.76.2) [β] VS Code (version 1.75.0-insider) [β] Connected device (3 available) [β] HTTP Host Availability ```Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
``` Dart SDK 2.19.4 Flutter SDK 3.7.7 app 1.0.0+1 dependencies: - adjust_sdk 4.33.1 [flutter meta] - cached_network_image 3.2.3 [flutter flutter_cache_manager octo_image cached_network_image_platform_interface cached_network_image_web] - connectivity_plus 3.0.3 [flutter flutter_web_plugins connectivity_plus_platform_interface js meta nm] - country_picker 2.0.19 [flutter collection] - crypto 3.0.2 [typed_data] - cupertino_icons 1.0.5 - dart_ipify 1.1.1 [http] - device_info_plus 8.1.0 [device_info_plus_platform_interface ffi file flutter flutter_web_plugins meta win32] - dio 4.0.6 [http_parser path] - equatable 2.0.5 [collection meta] - expandable 5.0.1 [flutter] - external_app_launcher 3.1.0 [flutter] - file_picker 5.2.5 [flutter flutter_web_plugins flutter_plugin_android_lifecycle plugin_platform_interface ffi path win32] - firebase_analytics 10.1.6 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter] - firebase_auth 4.3.0 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta] - firebase_core 2.8.0 [firebase_core_platform_interface firebase_core_web flutter meta] - firebase_crashlytics 3.0.17 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace] - firebase_messaging 14.3.0 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta] - firebase_performance 0.9.0+16 [firebase_core firebase_core_platform_interface firebase_performance_platform_interface firebase_performance_web flutter] - flutter 0.0.0 [characters collection js material_color_utilities meta vector_math sky_engine] - flutter_app_badger 1.5.0 [flutter] - flutter_bloc 8.1.2 [flutter bloc provider] - flutter_cupertino_datetime_picker 3.0.0 [flutter] - flutter_holo_date_picker 1.1.0 [flutter auto_size_text] - flutter_inappwebview 5.7.2+3 [flutter] - flutter_local_notifications 13.0.0 [clock flutter flutter_local_notifications_linux flutter_local_notifications_platform_interface timezone] - flutter_localizations 0.0.0 [flutter intl characters clock collection js material_color_utilities meta path vector_math] - flutter_mobx 2.0.6+5 [flutter mobx] - flutter_overlay_loader 2.0.0 [flutter] - flutter_secure_storage 8.0.0 [flutter flutter_secure_storage_linux flutter_secure_storage_macos flutter_secure_storage_platform_interface flutter_secure_storage_web flutter_secure_storage_windows meta] - flutter_speed_dial 6.2.0 [flutter] - flutter_staggered_grid_view 0.4.1 [flutter] - flutter_svg 2.0.1 [flutter vector_graphics vector_graphics_codec vector_graphics_compiler] - fluttertoast 8.2.1 [flutter flutter_web_plugins] - freshchat_sdk 0.10.3 [flutter] - google_sign_in 5.4.4 [flutter google_sign_in_android google_sign_in_ios google_sign_in_platform_interface google_sign_in_web] - http 0.13.5 [async http_parser meta path] - hydrated_bloc 8.1.0 [bloc hive meta synchronized] - image_picker 0.8.6+2 [flutter image_picker_android image_picker_for_web image_picker_ios image_picker_platform_interface] - infinite_scroll_pagination 3.2.0 [flutter sliver_tools] - intl 0.17.0 [clock path] - introduction_screen 3.1.6 [flutter dots_indicator collection] - just_audio 0.9.31 [just_audio_platform_interface just_audio_web audio_session rxdart path path_provider async uuid crypto meta flutter] - local_auth 2.1.3 [flutter local_auth_android local_auth_ios local_auth_platform_interface local_auth_windows] - mime 1.0.4 - mixpanel_flutter 2.0.0 [flutter flutter_web_plugins js] - mobx 2.1.4 [meta] - mobx_codegen 2.1.1 [analyzer build build_resolvers meta mobx path source_gen] - network_info_plus 3.0.2 [collection nm flutter flutter_web_plugins meta network_info_plus_platform_interface] - open_filex 4.3.2 [flutter ffi] - overlay_support 2.1.0 [flutter async] - package_info_plus 3.0.3 [ffi flutter flutter_web_plugins http meta path package_info_plus_platform_interface win32] - path_provider 2.0.12 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows] - permission_handler 9.2.0 [flutter meta permission_handler_android permission_handler_apple permission_handler_windows permission_handler_platform_interface] - pin_code_fields 7.4.0 [flutter] - record 4.4.4 [flutter record_platform_interface record_web record_windows record_macos record_linux] - sendbird_sdk 3.2.4 [flutter collection uuid json_annotation encrypt shared_preferences http logger mime connectivity_plus meta http_parser web_socket_channel universal_io] - share_plus 6.3.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 win32] - shared_preferences 2.0.17 [flutter shared_preferences_android shared_preferences_foundation shared_preferences_linux shared_preferences_platform_interface shared_preferences_web shared_preferences_windows] - shimmer 2.0.0 [flutter] - sign_in_with_apple 4.3.0 [flutter meta sign_in_with_apple_platform_interface sign_in_with_apple_web] - table_calendar 3.0.8 [flutter intl simple_gesture_detector] - toggle_switch 2.0.1 [flutter] - url_launcher 6.1.9 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows] - webview_flutter 3.0.4 [flutter webview_flutter_android webview_flutter_platform_interface webview_flutter_wkwebview] - youtube_player_flutter 8.1.2 [flutter flutter_inappwebview] dev dependencies: - build_runner 2.3.3 [args async analyzer build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style frontend_server_client glob graphs http_multi_server io js logging meta mime package_config path pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml] - flutter_lints 2.0.1 [lints] - flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters collection js matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph] transitive dependencies: - _fe_analyzer_shared 53.0.0 [meta] - _flutterfire_internals 1.0.18 [collection firebase_core firebase_core_platform_interface flutter meta] - analyzer 5.5.0 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml] - args 2.4.0 - asn1lib 1.4.0 - async 2.10.0 [collection meta] - audio_session 0.1.13 [flutter flutter_web_plugins rxdart meta] - auto_size_text 3.0.0 [flutter] - bloc 8.1.1 [meta] - boolean_selector 2.1.1 [source_span string_scanner] - build 2.3.1 [analyzer async convert crypto glob logging meta path] - build_config 1.1.1 [checked_yaml json_annotation path pubspec_parse yaml] - build_daemon 3.1.0 [built_collection built_value http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel] - build_resolvers 2.2.0 [analyzer async build collection crypto graphs logging path package_config pool pub_semver stream_transform yaml] - build_runner_core 7.2.7 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta path package_config pool timing watcher yaml] - built_collection 5.1.1 - built_value 8.4.3 [built_collection collection fixnum meta] - cached_network_image_platform_interface 2.0.0 [flutter flutter_cache_manager] - cached_network_image_web 1.0.2 [flutter flutter_cache_manager cached_network_image_platform_interface] - characters 1.2.1 - checked_yaml 2.0.2 [json_annotation source_span yaml] - clock 1.1.1 - code_builder 4.4.0 [built_collection built_value collection matcher meta] - collection 1.17.0 - connectivity_plus_platform_interface 1.2.4 [flutter meta plugin_platform_interface] - convert 3.1.1 [typed_data] - cross_file 0.3.3+4 [js meta] - dart_style 2.2.4 [analyzer args path pub_semver source_span] - dbus 0.7.8 [args ffi meta xml] - device_info_plus_platform_interface 7.0.0 [flutter meta plugin_platform_interface] - dots_indicator 2.1.0 [flutter] - encrypt 5.0.1 [args asn1lib clock collection crypto pointycastle] - fake_async 1.3.1 [clock collection] - ffi 2.0.1 - file 6.1.4 [meta path] - firebase_analytics_platform_interface 3.3.23 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_analytics_web 0.5.1+14 [_flutterfire_internals firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js] - firebase_auth_platform_interface 6.12.0 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_auth_web 5.2.10 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta] - firebase_core_platform_interface 4.5.3 [collection flutter flutter_test meta plugin_platform_interface] - firebase_core_web 2.2.2 [firebase_core_platform_interface flutter flutter_web_plugins js meta] - firebase_crashlytics_platform_interface 3.3.17 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_messaging_platform_interface 4.2.16 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_messaging_web 3.2.17 [_flutterfire_internals firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta] - firebase_performance_platform_interface 0.1.1+35 [_flutterfire_internals firebase_core flutter plugin_platform_interface] - firebase_performance_web 0.1.1+24 [_flutterfire_internals firebase_core firebase_core_web firebase_performance_platform_interface flutter flutter_web_plugins js] - fixnum 1.1.0 - flutter_blurhash 0.7.0 [flutter] - flutter_cache_manager 3.3.0 [clock collection file flutter http path path_provider pedantic rxdart sqflite uuid] - flutter_local_notifications_linux 3.0.0+1 [dbus ffi flutter flutter_local_notifications_platform_interface path xdg_directories] - flutter_local_notifications_platform_interface 6.0.0 [flutter plugin_platform_interface] - flutter_plugin_android_lifecycle 2.0.7 [flutter] - flutter_secure_storage_linux 1.1.3 [flutter flutter_secure_storage_platform_interface] - flutter_secure_storage_macos 3.0.0 [flutter flutter_secure_storage_platform_interface] - flutter_secure_storage_platform_interface 1.0.1 [flutter plugin_platform_interface] - flutter_secure_storage_web 1.1.1 [flutter flutter_secure_storage_platform_interface flutter_web_plugins js] - flutter_secure_storage_windows 2.0.0 [flutter flutter_secure_storage_platform_interface] - flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math] - frontend_server_client 3.2.0 [async path] - glob 2.1.1 [async collection file path string_scanner] - google_sign_in_android 6.1.6 [flutter google_sign_in_platform_interface] - google_sign_in_ios 5.5.1 [flutter google_sign_in_platform_interface] - google_sign_in_platform_interface 2.3.0 [flutter plugin_platform_interface quiver] - google_sign_in_web 0.10.2+1 [flutter flutter_web_plugins google_sign_in_platform_interface js] - graphs 2.2.0 [collection] - hive 2.2.3 [meta crypto] - http_multi_server 3.2.1 [async] - http_parser 4.0.2 [collection source_span string_scanner typed_data] - image_picker_android 0.8.5+6 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface] - image_picker_for_web 2.1.10 [flutter flutter_web_plugins image_picker_platform_interface] - image_picker_ios 0.8.6+8 [flutter image_picker_platform_interface] - image_picker_platform_interface 2.6.2 [cross_file flutter http plugin_platform_interface] - io 1.0.4 [meta path string_scanner] - js 0.6.5 [meta] - json_annotation 4.8.0 [meta] - just_audio_platform_interface 4.2.0 [flutter plugin_platform_interface] - just_audio_web 0.4.7 [just_audio_platform_interface flutter flutter_web_plugins] - lints 2.0.1 - local_auth_android 1.0.18 [flutter flutter_plugin_android_lifecycle intl local_auth_platform_interface] - local_auth_ios 1.0.12 [flutter intl local_auth_platform_interface] - local_auth_platform_interface 1.0.6 [flutter plugin_platform_interface] - local_auth_windows 1.0.5 [flutter local_auth_platform_interface] - logger 1.1.0 - logging 1.1.1 - matcher 0.12.13 [meta stack_trace] - material_color_utilities 0.2.0 - meta 1.8.0 - nested 1.0.0 [flutter] - network_info_plus_platform_interface 1.1.3 [flutter meta plugin_platform_interface] - nm 0.5.0 [dbus] - octo_image 1.0.2 [flutter flutter_blurhash] - package_config 2.1.0 [path] - package_info_plus_platform_interface 2.0.1 [flutter meta plugin_platform_interface] - path 1.8.2 - path_parsing 1.0.1 [vector_math meta] - path_provider_android 2.0.22 [flutter path_provider_platform_interface] - path_provider_foundation 2.1.1 [flutter path_provider_platform_interface] - path_provider_linux 2.1.8 [ffi flutter path path_provider_platform_interface xdg_directories] - path_provider_platform_interface 2.0.5 [flutter platform plugin_platform_interface] - path_provider_windows 2.1.3 [ffi flutter path path_provider_platform_interface win32] - pedantic 1.11.1 - permission_handler_android 9.0.2+1 [flutter permission_handler_platform_interface] - permission_handler_apple 9.0.7 [flutter permission_handler_platform_interface] - permission_handler_platform_interface 3.9.0 [flutter meta plugin_platform_interface] - permission_handler_windows 0.1.2 [flutter permission_handler_platform_interface] - petitparser 5.1.0 [meta] - platform 3.1.0 - plugin_platform_interface 2.1.3 [meta] - pointycastle 3.6.2 [collection convert js] - pool 1.5.1 [async stack_trace] - process 4.2.4 [file path platform] - provider 6.0.5 [collection flutter nested] - pub_semver 2.1.3 [collection meta] - pubspec_parse 1.2.1 [checked_yaml collection json_annotation pub_semver yaml] - quiver 3.2.1 [matcher] - record_linux 0.4.1 [flutter record_platform_interface path] - record_macos 0.2.2 [flutter record_platform_interface] - record_platform_interface 0.5.0 [flutter plugin_platform_interface] - record_web 0.5.0 [flutter flutter_web_plugins record_platform_interface] - record_windows 0.7.1 [flutter record_platform_interface path] - rxdart 0.27.7 - share_plus_platform_interface 3.2.0 [cross_file flutter meta mime plugin_platform_interface path_provider uuid] - shared_preferences_android 2.0.15 [flutter shared_preferences_platform_interface] - shared_preferences_foundation 2.1.3 [flutter shared_preferences_platform_interface] - shared_preferences_linux 2.1.3 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface] - shared_preferences_platform_interface 2.1.0 [flutter plugin_platform_interface] - shared_preferences_web 2.0.4 [flutter flutter_web_plugins shared_preferences_platform_interface] - shared_preferences_windows 2.1.3 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface] - shelf 1.4.0 [async collection http_parser path stack_trace stream_channel] - shelf_web_socket 1.0.3 [shelf stream_channel web_socket_channel] - sign_in_with_apple_platform_interface 1.0.0 [flutter plugin_platform_interface meta] - sign_in_with_apple_web 1.0.1 [flutter flutter_web_plugins sign_in_with_apple_platform_interface js] - simple_gesture_detector 0.2.0 [flutter] - sky_engine 0.0.99 - sliver_tools 0.2.9 [flutter] - source_gen 1.2.7 [analyzer async build dart_style glob path source_span yaml] - source_span 1.9.1 [collection path term_glyph] - sqflite 2.2.4+1 [flutter sqflite_common path] - sqflite_common 2.4.2+2 [synchronized path meta] - stack_trace 1.11.0 [path] - stream_channel 2.1.1 [async] - stream_transform 2.1.0 - string_scanner 1.2.0 [source_span] - synchronized 3.0.1 - term_glyph 1.2.1 - test_api 0.4.16 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher] - timezone 0.9.1 [path] - timing 1.0.1 [json_annotation] - typed_data 1.3.1 [collection] - universal_io 2.2.0 [collection meta typed_data] - url_launcher_android 6.0.23 [flutter url_launcher_platform_interface] - url_launcher_ios 6.1.0 [flutter url_launcher_platform_interface] - url_launcher_linux 3.0.2 [flutter url_launcher_platform_interface] - url_launcher_macos 3.0.2 [flutter url_launcher_platform_interface] - url_launcher_platform_interface 2.1.1 [flutter plugin_platform_interface] - url_launcher_web 2.0.14 [flutter flutter_web_plugins url_launcher_platform_interface] - url_launcher_windows 3.0.3 [flutter url_launcher_platform_interface] - uuid 3.0.7 [crypto] - vector_graphics 1.0.1 [flutter vector_graphics_codec] - vector_graphics_codec 1.0.1 - vector_graphics_compiler 1.0.1 [args meta path_parsing xml vector_graphics_codec] - vector_math 2.1.4 - watcher 1.0.2 [async path] - web_socket_channel 2.3.0 [async crypto stream_channel] - webview_flutter_android 2.10.4 [flutter webview_flutter_platform_interface] - webview_flutter_platform_interface 1.9.5 [flutter meta plugin_platform_interface] - webview_flutter_wkwebview 2.9.5 [flutter path webview_flutter_platform_interface] - win32 3.1.3 [ffi] - xdg_directories 0.2.0+3 [meta path process] - xml 6.2.2 [collection meta petitparser] - yaml 3.1.1 [collection source_span string_scanner] ```