Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Jan 15, 2021 at 07:46 AM by swordvoice for the following reason:

Problem is not reproducible or outdated

avatar image
0
Question by swordvoice · Sep 28, 2020 at 10:52 AM · error messagegoogleexternal assets

Firebase Remote Config fetch error on MacOS 10.15.6

Hello. I'm getting this weird error when I try getting values with Firebase Remote Config on my MacBook, and I can't seem to find the cause of this.

alt text

I'm currently using the latest version of Unity Firebase Remote Config Plugin, with cocoapos installed. Here is the script I use to fetch data:

 using System;
 using System.Collections;
 using System.Collections.Generic;
 using System.Threading.Tasks;
 using Firebase.Extensions;
 using UnityEngine;
 
 public class TestRemote : MonoBehaviour
 {
     // Start is called before the first frame update
     void Start()
     {
         Firebase.FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task => {
             var dependencyStatus = task.Result;
             if (dependencyStatus == Firebase.DependencyStatus.Available)
             {
                 InitializeFirebase();
                 // Create and hold a reference to your FirebaseApp,
                 // where app is a Firebase.FirebaseApp property of your application class.
                 //app = Firebase.FirebaseApp.DefaultInstance;
 
                 // Set a flag here to indicate whether Firebase is ready to use by your app.
             }
             else
             {
                 UnityEngine.Debug.LogError(System.String.Format(
                   "Could not resolve all Firebase dependencies: {0}", dependencyStatus));
                 // Firebase Unity SDK is not safe to use here.
             }
         });
     }
 
     void InitializeFirebase()
     {
         // [START set_defaults]
         System.Collections.Generic.Dictionary<string, object> defaults =
           new System.Collections.Generic.Dictionary<string, object>();
 
         // These are the values that are used if we haven't fetched data from the
         // server
         // yet, or if we ask for values that the server doesn't have:
         defaults.Add("config_test_string", "default local string");
         defaults.Add("config_test_int", 1);
         defaults.Add("config_test_float", 1.0);
         defaults.Add("config_test_bool", false);
 
         Firebase.RemoteConfig.FirebaseRemoteConfig.SetDefaults(defaults);
         // [END set_defaults]
         Debug.Log("RemoteConfig configured and ready!");
         FetchDataAsync();
     }
 
     public Task FetchDataAsync()
     {
         Debug.Log("Fetching data...");
         System.Threading.Tasks.Task fetchTask = Firebase.RemoteConfig.FirebaseRemoteConfig.FetchAsync(
             TimeSpan.Zero);
         return fetchTask.ContinueWithOnMainThread(FetchComplete);
     }
 
     void FetchComplete(Task fetchTask)
     {
         if (fetchTask.IsCanceled)
         {
             Debug.Log("Fetch canceled.");
         }
         else if (fetchTask.IsFaulted)
         {
             Debug.Log("Fetch encountered an error.");
         }
         else if (fetchTask.IsCompleted)
         {
             Debug.Log("Fetch completed successfully!");
         }
 
         var info = Firebase.RemoteConfig.FirebaseRemoteConfig.Info;
         switch (info.LastFetchStatus)
         {
             case Firebase.RemoteConfig.LastFetchStatus.Success:
                 Firebase.RemoteConfig.FirebaseRemoteConfig.ActivateFetched();
                 Debug.Log(String.Format("Remote data loaded and ready (last fetch time {0}).",
                                        info.FetchTime));
                 break;
             case Firebase.RemoteConfig.LastFetchStatus.Failure:
                 switch (info.LastFetchFailureReason)
                 {
                     case Firebase.RemoteConfig.FetchFailureReason.Error:
                         Debug.Log("Fetch failed for unknown reason");
                         break;
                     case Firebase.RemoteConfig.FetchFailureReason.Throttled:
                         Debug.Log("Fetch throttled until " + info.ThrottledEndTime);
                         break;
                 }
                 break;
             case Firebase.RemoteConfig.LastFetchStatus.Pending:
                 Debug.Log("Latest Fetch call still pending.");
                 break;
         }
         Debug.Log(Firebase.RemoteConfig.FirebaseRemoteConfig.GetValue("config_test_string").StringValue);
     }
 }
 

I have been using Firebase Remote Config for some time now but this is the first time I get this error, the code and plugin still run normally on Window, I try using the older ver of the plugin but still no luck. Sorry for the bad English. Thanks.

screen-shot-2020-09-24-at-222249.png (250.5 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

139 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

I'm trying to install a map and it does not work for me I would be happy to help error CS0234,error CS0234 I'm trying to open a map it does not work for me I would love to get help 0 Answers

Unity google drive api 0 Answers

C#, "object reference not set to an instance of an object" 3 Answers

BCE0048 Error appears when switching platform but works when building for a PC? 0 Answers

Weird Problem with optional function parameter 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges