Firebase help

I was wondering if it was possible to use Firebase and it’s cloud messaging to not just send push notifications, but to have that message show up in game. For example, in trying to build an updateable news segment in an iOS app. I’d like to be able to send a notification and have it stay in the news section until I cancel it.

I might recommend Unity Remote Settings https://docs.unity3d.com/Manual/UnityAnalyticsRemoteSettings.html . Strings are limited to 1024 characters

I’ve already attempted too, but it was not working for me in version 2018.2.15. I’d export to the desktop of my Mac and it wouldn’t update my strings. It actually didn’t even see the launch under the analytics tab.

Please try Remote Settings again, we had a delay recently in the service for a short time. Not quite sure what you mean though “didn’t even see the launch” and your mention of an export, please elaborate. It does take our Analytics system 8-16 hours to process new events and make them available in the Dashboard (Remote Settings however is real time). Please test with both Release and Development settings.

1 Like

ok, still not working for me.

I have this on a Mac standalone app that has been built:

The refresh function is set as an action for a UI button.
The Text ui is what I want to update.
The string reads local on button press, where I have it set to read server on my key value named text in the dashboard.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Refresh : MonoBehaviour {

    public string txt = "local";
    public Text up;

   public void refresh(){

         up.text= RemoteSettings.GetString("text", txt);

    }
}

And you have “text” defined in both Development and Release on the Dashboard, and as a test as suggested, you entered your Project secret key, changed both values in the Dashboard just now, and clicked Sync, correct? Do you get the proper value in the Unity Editor? https://docs.unity3d.com/Manual/UnityAnalyticsRemoteSettingsManaging.html

Well, thanks to you, I do seem to be making progress. I rechecked everything, and made some adjustments. It does now seem to be working almost perfectly. Though, once the app is open, after I update the value the first time, it won’t resync again. For example, the first time I hit the button, it correctly reads server, but if I then go change the value in the dashboard and hit the button again, it won’t update to the new info. Any thoughts on that?

@DMac360 Have you set up the callback?