public override bool FinishedLaunching(UIApplication app, NSDictionary options) { App.ScreenHeight = (int)UIScreen.MainScreen.Bounds.Height; App.ScreenWidth = (int)UIScreen.MainScreen.Bounds.Width; global::Xamarin.Forms.Forms.Init(); OxyPlot.Xamarin.Forms.Platform.iOS.PlotViewRenderer.Init(); LoadApplication(new App()); //注册apns远程推送 if (options == null) { options = new NSDictionary(); } jPushRegister = new JPushInterface(); jPushRegister.Register(this, options); this.RegistLogin(options); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { App.ScreenHeight = (int)UIScreen.MainScreen.Bounds.Height; App.ScreenWidth = (int)UIScreen.MainScreen.Bounds.Width; //Xamarin.Calabash.Start(); global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); ////注册apns远程推送 if (options == null) { options = new NSDictionary(); } jPushRegister = new JPushInterface(); jPushRegister.Register(this, options); this.RegistLogin(options); app.ApplicationIconBadgeNumber = 0; return(base.FinishedLaunching(app, options)); }