I don't want the push notification now, though I have added the GoogleService-Info.plist
file and code for firebase push notification.
It works on android but having problem in iOS. iOS stuck like this.
I don't know if it will help now...
I found solution at https://firebase.google.com/docs/flutter/setup
It says "Using XCode, move the file into the Runner/Runner directory of your Flutter app."
When, I just copy & paste GoogleService-Info.plist
at VSCode, and do flutter run
.
It print "Configuring the default Firebase app" infinitly.
But,
1. Execute xcode and open {your_app}/ios
2. drag & drop `GoogleService-Info.plist` at `Runner/Runner`
3. Choose `Finish`
this way fixed error.
I hope it will help other people who have same problem.
The answer should be available here as a quote:
- Open Xcode, then right-click on Runner directory and select Add Files to "Runner".
- Select GoogleService-Info.plist from the file manager.
- A dialog will show up and ask you to select the targets, select the Runner target.
- Then add the CFBundleURLTypes attributes below into the [my_project]/ios/Runner/Info.plist file.
<!-- Put me in the [my_project]/ios/Runner/Info.plist file -->
<!-- Google Sign-in Section -->
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<!-- TODO Replace this value: -->
<!-- Copied from GoogleService-Info.plist key REVERSED_CLIENT_ID -->
<string>com.googleusercontent.apps.861823949799-vc35cprkp249096uujjn0vvnmcvjppkn</string>
</array>
</dict>
</array>
<!-- End of the Google Sign-in Section -->
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With