chat-app-flutter icon indicating copy to clipboard operation
chat-app-flutter copied to clipboard

Fails on iOS

Open Dersh opened this issue 4 years ago • 5 comments

I have tried to build on iOS as-is. App failed to run on emulator.

Dersh avatar Jul 14 '20 08:07 Dersh

Hi, could you post the exact error that you are getting. And I don't have a mac to test it on.

vineeshvk avatar Jul 15 '20 06:07 vineeshvk

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'.

Dersh avatar Jul 17 '20 23:07 Dersh

I guess the solution is near :) https://github.com/flutter/flutter/issues/30765

Make several simple tests:

  1. replaced ios folder with the one from new flutter project - the same error
  2. 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

Dersh avatar Jul 17 '20 23:07 Dersh

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.

DEVSOG12 avatar Jul 21 '20 10:07 DEVSOG12

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 .

DEVSOG12 avatar Jul 21 '20 10:07 DEVSOG12