I have my app already submited, reviewed and online in Google Play & iTunes, but recently I added the firebase_messaging
plugin for notification feature.
While joining the Firebase Cloud Messaging, Google forced me to download two files:
google-services.json
- Saved in the folder of my flutter App:MyApp\android\app
GoogleService-Info.plist
- I don't know where to save it, but tried onMyApp\ios\Runner
andMyApp\ios\Runner.xcodeworkspace
without success
And all the tutorials point to the use of Xcode to set the file GoogleService-Info.plist
properly, but I do not own a Mac and I've been using with success the windows application AppUploader
to submit my iOS apps.
Is there any way to not use the Xcode and be able to attach the GoogleService-Info.plist
to my project?
after a while I bumped into it using the new XCode too I can guarantee you as already suggested that it works in this way.
Enter it under the
PS: From XCode I always took the reference of the file, it did not copy it to me. If anyone has succeeded even without this procedure above I would like to understand exactly how to do it from XCode.
If you want to avoid using Xcode, you have to manually edit this file : /ios/Runner.xcodeproj/project.pbxproj
You will need to reference GoogleService-Info.plist in order to make it included during the build process.
Here are the 4 differents sections where you need to add a line (see example line for GoogleService-Info.plist):
Here :
Here:
And here :
Tested successfully with codemagic, this modification made the provided GoogleService-Info.plist included in the App IPA
Somewhere along the line, AppUploader must be using XCode to build an iOS app from your code. While I don't know how they do that (their documentation is scarce on details), the best you can hope for is to put the
google-services-info.plist
in the right place before uploading the app.In my projects I always put the
google-services-info.plist
in themyappname/ios/Runner
directory that the Flutter tooling auto-generates. That's where the build then picks it up from.