flutter - Flutter ios 卡在“配置默认 Firebase 应用”
问题描述
我现在不想要推送通知,尽管我已经GoogleService-Info.plist
为 firebase 推送通知添加了文件和代码。
它适用于android,但在iOS中存在问题。iOS 就这样卡住了。
解决方案
答案应该在此处作为报价提供:
- 打开 Xcode,然后右键单击Runner目录并选择Add Files to "Runner"。
- 从文件管理器中选择GoogleService-Info.plist 。
- 将出现一个对话框并要求您选择目标,选择Runner目标。
- 然后将下面的CFBundleURLTypes属性添加到[my_project]/ios/Runner/Info.plist文件中。
<!-- 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 -->
推荐阅读
- powershell - PowerShell Test If a Filename From a List Exists Somewhere In a Directory and Export Missing
- python - Conditionally sort a single column in ascending and descending order in Pandas
- cron - 会错过 shebang 停止脚本运行
- android - 更改组合图表图例顺序,MPAndroidChart
- jestjs - 所有测试都通过了 100% 的覆盖率,但 jest 返回退出代码 1
- angular - 将PNG作为图标
- java - 如何指定一次使用哪个模式?
- coq - Current required number of arguments for unfolding by `simpl`
- haskell - What do you use for base case for Int -> Int -> [Int] in haskell?
- html - How to add a line as a pseudo element when using flex-box