chat-app-flutter
chat-app-flutter copied to clipboard
Fails on iOS
I have tried to build on iOS as-is. App failed to run on emulator.
Hi, could you post the exact error that you are getting. And I don't have a mac to test it on.
Launching lib/main.dart on iPhone SE (2nd generation) in debug mode... Running Xcode build... Xcode build done. 11,5s Configuring the default Firebase app... 6.27.0 - [Firebase/Core][I-COR000004] App with name __FIRAPP_DEFAULT does not exist. 6.27.0 - [Firebase/Core][I-COR000012] Could not locate configuration file: 'GoogleService-Info.plist'.
I guess the solution is near :) https://github.com/flutter/flutter/issues/30765
Make several simple tests:
- replaced ios folder with the one from new flutter project - the same error
- removed firebase_messaging from pubspec.yaml and all *.dart files - the application has started.
I guess firebase was not properly registered for iOS platform. I have no experience before. I'll continue research tomorrow
Try to Configure the Firebase Project For iOS. Get The "GoogleService-Info.plist" from the google firebase console and put it in the chat-app-flutter/ios/Runner/ .
That Should configure the project Correctly, then run a flutter clean
and the try to rebuild the app.
And You can check https://pub.dev/packages/firebase_messaging#ios-integration for more info about setting up cloud_messaging in iOS You will need to generate the certificates required by Apple for receiving push notifications .