public static void Init() { FirebaseMessages.AddFCMIntValueHandler("cash", amount => { //DataManager.Instance.money += amount; //Debug.Log("[FCMMessagingHandlers] adding bonus cash"); }); }
public void InitializeFirebase() { #if VIPERA_CORE MainThreadQueue.Enqueue(() => { analytics.InitializeFirebase(); remoteConfig.InitializeFirebase(); FirebaseMessages.Init(); }); #endif }
void OnDestroy() { FirebaseMessages.ClearCallbacks(); }