Esempio n. 1
0
		private void ProcessLogin(string username, string password, string vendorID)
		{
			Debug.WriteLine ("[LoginVC] Logging In...");
			WebServices wbs = new WebServices ();
			//wbs.getLoginData (username, password, "", vendorID, "ios");
			loginFormView.Hidden = false;
			vLoginIndicator.Hidden = true;
			uiaivLoadIndicator.StopAnimating();
			MainMenuXDVC mmNonDrawerVC = (MainMenuXDVC)Storyboard.InstantiateViewController("mainmenuxdvcontroller");
			PresentViewController (mmNonDrawerVC, true, null);

		}
Esempio n. 2
0
		public override void RegisteredForRemoteNotifications (UIApplication application, NSData deviceToken)
		{
			Console.WriteLine ("[AppDelegate] Registered APNS: {0}",deviceToken.ToString());

			// code to register with your server application goes here

			NSUuid regVendor = UIDevice.CurrentDevice.IdentifierForVendor;

			Console.WriteLine ("[AppDelegate] Registered Vendor: {0}",regVendor);

			VendorID = regVendor.AsString();
			APNSID = deviceToken.ToString ().Replace ("<", "").Replace (">", "").Replace (" ", "");

			Console.WriteLine ("[AppDelegate] Registered APNS Replaced: {0}",APNSID);
			Console.WriteLine ("[AppDelegate] Registered Vendor Replaced: {0}",VendorID);

			WebServices wbs = new WebServices ();
			//var registerAPNS = wbs.setAPNSRegistration (VendorID, APNSID);

			//Console.WriteLine ("[AppDelegate] APNS Registration Status: {0}",registerAPNS);


		}