public void RegisterForPushNotifications() { if (Application.platform == 11) { this.RegisterForPushNotificationsAndroid(); } else if (Application.platform == 8) { BLPushManager.RegisterForPushNotificationsIOS(); } }
public void RegisterForPushNotifications() { if (Application.platform == RuntimePlatform.Android) { this.RegisterForPushNotificationsAndroid(); } else if (Application.platform == RuntimePlatform.IPhonePlayer) { BLPushManager.RegisterForPushNotificationsIOS(); } }
private void Awake() { if (BLPushManager.instance == null) { BLPushManager.instance = this; } else if (BLPushManager.instance != this) { UnityEngine.Object.Destroy(base.gameObject); } UnityEngine.Object.DontDestroyOnLoad(base.gameObject); base.name = "BLPushManager"; }
private void Awake() { if (BLPushManager.instance == null) { BLPushManager.instance = this; } else if (BLPushManager.instance != this) { Object.Destroy(base.get_gameObject()); } Object.DontDestroyOnLoad(base.get_gameObject()); base.set_name("BLPushManager"); }
public void InitWithBuilder(BLPushManagerBuilder builder) { BLPushHandler.builder = builder; if (Application.platform != 11) { if (Application.platform == 8) { BLPushManager.InitializePushManagerBuilderUnity(); BLPushManager.SetApplicationName(builder.applicationName); BLPushManager.SetRegion(builder.region); BLPushManager.SetLocale(builder.locale); BLPushManager.SetAuthRegion(builder.authRegion); BLPushManager.SetAuthToken(builder.authToken); BLPushManager.SetAppAccountId(builder.appAccountID); BLPushManager.SetShouldRegisterWithBPNS(builder.shouldRegisterwithBPNS); BLPushManager.SetIsDebug(builder.isDebug); BLPushManager.SetUnityPushEventHandler(); BLPushManager.InitializePushManager(); } } }