| | |
| | | using System;
|
| | | using System; |
| | | using Foundation; |
| | | using HDL_ON; |
| | | using Shared; |
| | |
| | | using Microsoft.AppCenter.Crashes; |
| | | using HDL_ON.UI; |
| | | using HDL_ON.DAL.Server; |
| | | using Intents; |
| | | |
| | | namespace SharedMethod |
| | | { |
| | |
| | | |
| | | public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) |
| | | { |
| | | Console.WriteLine("111111111111"); |
| | | SetCurrentLanguage(); |
| | | //Shared.Application.FontSize = 12; |
| | | //Bugly.Bugly.StartWithAppId("b58fb35436"); |
| | |
| | | //{ |
| | | // //RemoteInfo.Current.ReadMsgList(true); |
| | | //} |
| | | //中文国内key、英文海外key |
| | | EZSDK.IOS.EZSDK.InitLibWithAppKey("1aa98a90489b4838b966b57018b4b04b", "1aa98a90489b4838b966b57018b4b04b"); |
| | | |
| | | #region Siri |
| | | // Request access to Siri |
| | | INPreferences.RequestSiriAuthorization((INSiriAuthorizationStatus status) => { |
| | | // Respond to returned status |
| | | switch (status) |
| | | { |
| | | case INSiriAuthorizationStatus.Authorized: |
| | | break; |
| | | case INSiriAuthorizationStatus.Denied: |
| | | break; |
| | | case INSiriAuthorizationStatus.NotDetermined: |
| | | break; |
| | | case INSiriAuthorizationStatus.Restricted: |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | var language = INPreferences.SiriLanguageCode; |
| | | |
| | | // Take action based on language |
| | | if (language == "en-US") |
| | | { |
| | | // Do something... |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | //高德key |
| | | GDMapKit.setGDApiKey("f0635ea15c5d579c6e93d9f07a06da69"); |
| | | Console.WriteLine("FinishedLaunching"); |
| | | return true; |
| | | } |
| | |
| | | var expandData = ""; |
| | | var messageType = ""; |
| | | var expantContent = ""; |
| | | var homeId = ""; |
| | | if (userInfo.ContainsKey(new NSString("expandData"))) |
| | | { |
| | | var expandDataStr = userInfo["expandData"] as NSString; |
| | |
| | | Utlis.WriteLine("expantContent: " + expantContent); |
| | | } |
| | | |
| | | if (expandDataNSD.ContainsKey(new NSString("homeId"))) |
| | | { |
| | | homeId = expandDataNSD["homeId"].ToString(); |
| | | Utlis.WriteLine("homeId: " + homeId); |
| | | } |
| | | |
| | | } |
| | | } |
| | | else |
| | |
| | | } |
| | | var pushMes = new JPushMessageInfo() |
| | | { |
| | | HomeId = homeId, |
| | | Title = title, |
| | | Content = body, |
| | | Extras = expandData, |