private SetupPushNotifications ( ) : IEnumerator | ||
return | IEnumerator |
public static void ManualRegisterForPushNotifications(string _) { if (_instance != null && !_instance.registerForPushNotifications) { FuseSDK me = GameObject.FindObjectOfType <FuseSDK>(); me.StartCoroutine(me.SetupPushNotifications()); } }
private static void _StartSession(string gameId, bool registerForPush, bool handleAdURLs, bool enableCrashDetection) { if (_sessionStarted) { Debug.LogWarning("FuseSDK: Duplicate StartSession call. Ignoring."); return; } if (string.IsNullOrEmpty(gameId)) { Debug.LogError("FuseSDK: Null or empty App ID. Make sure your App ID is entered in the FuseSDK prefab"); return; } if (registerForPush) { FuseSDK me = GameObject.FindObjectOfType <FuseSDK>(); me.StartCoroutine(me.SetupPushNotifications()); } _sessionStarted = true; FuseLog("StartSession(" + gameId + ")"); Native_StartSession(gameId, registerForPush, handleAdURLs, enableCrashDetection); }