private void Awake() { UpdateStatus("Status: Not Ready"); //listen for event LocalNotificationPlugin.OnLocalNotificationLoadComplete += OnLocalNotificationLoadComplete; LocalNotificationPlugin.OnLocalNotificationLoadFail += OnLocalNotificationLoadFail; localNotificationPlugin = LocalNotificationPlugin.GetInstance(); localNotificationPlugin.SetDebug(0); localNotificationPlugin.Init(); timePlugin = TimePlugin.GetInstance(); timePlugin.SetDebug(0); int isOpenUsingNotification = localNotificationPlugin.IsOpenUsingNotification(); Debug.Log("[ShareAndExperienceDemo]: isOpenUsingNotification " + isOpenUsingNotification); if (isOpenUsingNotification == 1) { //do something here } else { //do something here } }
// Use this for initialization void Start() { id = 0; LocalNotificationPlugin.Init(); }