<legend id='Exl7C'><style id='Exl7C'><dir id='Exl7C'><q id='Exl7C'></q></dir></style></legend>

        <small id='Exl7C'></small><noframes id='Exl7C'>

          <bdo id='Exl7C'></bdo><ul id='Exl7C'></ul>

        <tfoot id='Exl7C'></tfoot>
        <i id='Exl7C'><tr id='Exl7C'><dt id='Exl7C'><q id='Exl7C'><span id='Exl7C'><b id='Exl7C'><form id='Exl7C'><ins id='Exl7C'></ins><ul id='Exl7C'></ul><sub id='Exl7C'></sub></form><legend id='Exl7C'></legend><bdo id='Exl7C'><pre id='Exl7C'><center id='Exl7C'></center></pre></bdo></b><th id='Exl7C'></th></span></q></dt></tr></i><div id='Exl7C'><tfoot id='Exl7C'></tfoot><dl id='Exl7C'><fieldset id='Exl7C'></fieldset></dl></div>
      1. Xamarin.android 默认 FirebaseApp 未在此过程中初始化

        时间:2023-07-28

        <tfoot id='jgTpg'></tfoot>
          <tbody id='jgTpg'></tbody>

              <small id='jgTpg'></small><noframes id='jgTpg'>

              • <legend id='jgTpg'><style id='jgTpg'><dir id='jgTpg'><q id='jgTpg'></q></dir></style></legend>
              • <i id='jgTpg'><tr id='jgTpg'><dt id='jgTpg'><q id='jgTpg'><span id='jgTpg'><b id='jgTpg'><form id='jgTpg'><ins id='jgTpg'></ins><ul id='jgTpg'></ul><sub id='jgTpg'></sub></form><legend id='jgTpg'></legend><bdo id='jgTpg'><pre id='jgTpg'><center id='jgTpg'></center></pre></bdo></b><th id='jgTpg'></th></span></q></dt></tr></i><div id='jgTpg'><tfoot id='jgTpg'></tfoot><dl id='jgTpg'><fieldset id='jgTpg'></fieldset></dl></div>

                  <bdo id='jgTpg'></bdo><ul id='jgTpg'></ul>
                  本文介绍了Xamarin.android 默认 FirebaseApp 未在此过程中初始化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我面临从 firebase 获取令牌的问题(推送通知)

                  I face issue with get token from firebase (push notification)

                  Default FirebaseApp is not initialized in this process com.ready_apps.Nebka.Business. Make sure to call FirebaseApp.initializeApp(Context) first.
                  

                  即使我调用了 FirebaseApp.InitializeApp(this);在很多地方

                  even I called FirebaseApp.InitializeApp(this); in many places

                  MyApplication (that extends Application) ,在我调用 FirebaseInstanceId.Instance?.Token;

                  MyApplication (that extend Application) , in onCreate of Activity where I call FirebaseInstanceId.Instance?.Token;

                  推荐答案

                  此错误已在 Xamarin.Firebase 版本 57.1104.0-beta1 中修复.

                  This bug has been fixed in Xamarin.Firebase version 57.1104.0-beta1.

                  此错误似乎出现在较新版本的 Firebase for Xamarin 中.我今天也遇到了这个错误,使用的是最新的稳定版本 42.1021.1.(该错误也出现在最新的 beta 版本中).

                  This error seems to be present in the newer versions of Firebase for Xamarin. I am also experiencing this error as of today, using the latest stable version 42.1021.1. (The error is also present in the latest beta build).

                  我发现已针对该问题提交了错误报告此处.

                  I found that a bug report has been filed for the issue here.

                  如错误报告中所述,删除 Android 项目中的/obj 和/bin 文件夹,和/或在 Visual Studio 中清理项目应该可以暂时解决问题,直到您更新任何会更改 Resource.Designer 的资源.cs 文件.

                  As mentioned in the bug report, deleting both the /obj and /bin folders in your Android project, and/or cleaning the project in Visual Studio should fix the problem temporarily until you update any resource that would change the Resource.Designer.cs file.

                  在永久解决方案可用之前,也可以降级到旧版本的 Firebase 和 Google Play 服务.例如,我在 Firebase 和 Google Play Services 版本 32.961.0 上没有遇到此错误.

                  Downgrading to an older version of Firebase and Google Play Services is also possible before a permanent solution is available. I did not experience this error on Firebase and Google Play Services version 32.961.0, for example.

                  这篇关于Xamarin.android 默认 FirebaseApp 未在此过程中初始化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:仅向 Firebase 中的一位用户发送通知 下一篇:Cordova Firebase 插件通知 - 无法将任务“:processDebugGoogleServices&qu

                  相关文章

                  <tfoot id='Y6ue2'></tfoot>
                  <legend id='Y6ue2'><style id='Y6ue2'><dir id='Y6ue2'><q id='Y6ue2'></q></dir></style></legend>
                      <i id='Y6ue2'><tr id='Y6ue2'><dt id='Y6ue2'><q id='Y6ue2'><span id='Y6ue2'><b id='Y6ue2'><form id='Y6ue2'><ins id='Y6ue2'></ins><ul id='Y6ue2'></ul><sub id='Y6ue2'></sub></form><legend id='Y6ue2'></legend><bdo id='Y6ue2'><pre id='Y6ue2'><center id='Y6ue2'></center></pre></bdo></b><th id='Y6ue2'></th></span></q></dt></tr></i><div id='Y6ue2'><tfoot id='Y6ue2'></tfoot><dl id='Y6ue2'><fieldset id='Y6ue2'></fieldset></dl></div>
                      • <bdo id='Y6ue2'></bdo><ul id='Y6ue2'></ul>

                      <small id='Y6ue2'></small><noframes id='Y6ue2'>