Exemplo n.º 1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

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

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


            try
            {
                ArelloMobile.Push.PushManager manager = ArelloMobile.Push.PushManager.GetInstance(this);
                manager.OnStartup(this);
                //Register for push!
                manager.RegisterForPushNotifications();

                checkMessage(Intent);
            }
            catch
            {}


            global::Xamarin.Forms.Forms.Init(this, bundle);
            LoadApplication(new App());
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

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

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

            ArelloMobile.Push.PushManager manager = new ArelloMobile.Push.PushManager(this, "583A3-D5063", "55344347410");
            manager.OnStartup(this);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.main);

            mGeneralStatus = FindViewById <TextView>(Resource.Id.general_status);
            mTagsStatus    = FindViewById <TextView>(Resource.Id.status);

            checkMessage(Intent);
        }
Exemplo n.º 3
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            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();

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.main);

            mGeneralStatus = FindViewById <TextView>(Resource.Id.general_status);
            mTagsStatus    = FindViewById <TextView>(Resource.Id.status);

            checkMessage(Intent);
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate (bundle);

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

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

            ArelloMobile.Push.PushManager manager = new ArelloMobile.Push.PushManager (this, "583A3-D5063", "55344347410");
            manager.OnStartup (this);

            // Set our view from the "main" layout resource
            SetContentView (Resource.Layout.main);

            mGeneralStatus = FindViewById<TextView>(Resource.Id.general_status);
            mTagsStatus = FindViewById<TextView>(Resource.Id.status);

            checkMessage (Intent);
        }