protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); mMessageReceiver = new LocalMessageBroadcastReceiver(); mMessageReceiver.activity = this; mRegisterReceiver = new LocalRegisterBroadcastReceiver(); mRegisterReceiver.activity = this; registerReceivers(); PushManager manager = PushManager.GetInstance(this); manager.OnStartup(this); // Register for push! manager.RegisterForPushNotifications(); // Reset application icon badge number manager.BadgeNumber = 0; // 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); global::Xamarin.Forms.Forms.Init(this, bundle); LoadApplication(new App()); mMessageReceiver = new LocalMessageBroadcastReceiver(); mMessageReceiver.activity = this; registerReceivers(); PushManager manager = PushManager.GetInstance(this); manager.OnStartup(this); // Register for push! manager.RegisterForPushNotifications(); // Reset application icon badge number manager.BadgeNumber = 0; checkMessage(Intent); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); mMessageReceiver = new LocalMessageBroadcastReceiver(); mMessageReceiver.activity = this; mRegisterReceiver = new LocalRegisterBroadcastReceiver(); mRegisterReceiver.activity = this; registerReceivers(); PushManager manager = PushManager.GetInstance(this); manager.OnStartup(this); // Register for push! manager.RegisterForPushNotifications(); // Reset application icon badge number manager.BadgeNumber = 0; manager.SetUserId(this, "%userId%"); IDictionary <string, Java.Lang.Object> attributes = new Dictionary <string, Java.Lang.Object>(); attributes.Add("attribute", new Java.Lang.String("value")); InAppFacade.PostEvent(this, "applicationOpened", attributes); // 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); }