wxr
2023-10-20 6de7f8a29b04737d80ad8cb17804fcc50d267bd9
HDL-ON_iOS/AppDelegate.cs
@@ -62,6 +62,17 @@
        {
            UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
        }
        [Export("application:shouldAllowExtensionPointIdentifier:")]
        public override bool ShouldAllowExtensionPointIdentifier(UIApplication application, NSString extensionPointIdentifier)
        {
            //if (extensionPointIdentifier == UIApplicationKeyboardExtensionPointIdentifier)
            //{
            //    return false;
            //}
            return true;
        }
        public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
        {
@@ -278,6 +289,9 @@
                {
                    Language.CurrentLanguage = "Spanish";
                }
                else if(NSLocale.PreferredLanguages[0].Contains("uk-")){
                    Language.CurrentLanguage = "Ukraine";
                }
                else
                {
                    Language.CurrentLanguage = "English";
@@ -343,6 +357,14 @@
            //{
            //    //RemoteInfo.Current.ReadMsgList(true);
            //}
            try
            {
                UMSdk.HDLUMSDK.InitUMSDKWithAppKey("61d56642e0f9bb492bbc3e72", "IOS");
            }
            catch(Exception ex)
            {
                Console.WriteLine("启动友盟SDK异常:"+ex.Message);
            }
            Console.WriteLine("FinishedLaunching");
            return true;