Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 它是如何工作的_Android_Xamarin_Tags_Pushwoosh - Fatal编程技术网

Android 它是如何工作的

Android 它是如何工作的,android,xamarin,tags,pushwoosh,Android,Xamarin,Tags,Pushwoosh,我想知道pushwoosh系统是如何工作的。用户启动应用程序的前两次,将执行doOnRegistered()处理程序。在前两次之后,这种情况不再发生 另一个大问题是,我需要获得我的标签,但无法知道经理是否已注册。因此,前两次,在注册管理器之前(也就是在调用doOnRegistered之前),调用方法UserController.Instance.GetPushwooshTags(ApplicationContext)中异步方法的处理程序。我怎样才能解决这个问题 我做的每件事都是这样的: 在我的活

我想知道pushwoosh系统是如何工作的。用户启动应用程序的前两次,将执行doOnRegistered()处理程序。在前两次之后,这种情况不再发生

另一个大问题是,我需要获得我的标签,但无法知道经理是否已注册。因此,前两次,在注册管理器之前(也就是在调用doOnRegistered之前),调用方法UserController.Instance.GetPushwooshTags(ApplicationContext)中异步方法的处理程序。我怎样才能解决这个问题

我做的每件事都是这样的:

在我的活动中,我正在做类似的事情:

    protected override void OnCreate (Bundle bundle)
    {
        base.OnCreate (bundle);
        SetContentView (Resource.Layout.mainAppActivity);

        mMessageReceiver = new LocalMessageBroadcastReceiver ();
        mMessageReceiver.activity = this;

        mRegisterReceiver = new LocalRegisterBroadcastReceiver ();
        mRegisterReceiver.activity = this;

        ArelloMobile.Push.PushManager manager = ArelloMobile.Push.PushManager.GetInstance (this);
        manager.OnStartup (this);

        //Register for push!
        manager.RegisterForPushNotifications();
        checkMessage (Intent);

        //this method calls pushManager.GetTagsAsync(context,listener);
        UserController.Instance.GetPushwooshTags (ApplicationContext);

    }


    public void doOnRegistered(String registrationId)
    {
        Console.WriteLine ("registered for pushwoosh");
        // code to run if device has succesfully registered

    }

但是你的应用程序会收到推送吗?你参加考试了吗? 如果没有,您还应检查以下文档: 及