Ejemplo n.º 1
0
    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
        }
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        localNotificationPlugin = LocalNotificationPlugin.GetInstance();
        localNotificationPlugin.SetDebug(0);

        int isOpenUsingNotification = localNotificationPlugin.IsOpenUsingNotification();

        Debug.Log("[ShareAndExperienceDemo]: isOpenUsingNotification " + isOpenUsingNotification);

        if (isOpenUsingNotification == 1)
        {
            //do something here
        }
        else
        {
            //do something here
        }
    }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        localNotificationPlugin = LocalNotificationPlugin.GetInstance();
        localNotificationPlugin.SetDebug(0);

        int isOpenUsingNotification = localNotificationPlugin.IsOpenUsingNotification();
        Debug.Log("[ShareAndExperienceDemo]: isOpenUsingNotification " + isOpenUsingNotification);

        if(isOpenUsingNotification == 1){
            //do something here
        }else{
            //do something here
        }
    }