From 681e990f8c3e51672ad1e37440f35d960f9f56c1 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期三, 07 十二月 2022 10:40:58 +0800 Subject: [PATCH] 2022年12月07日10:39:43 --- HDL_ON/UI/UI2/UserPage.cs | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/UserPage.cs b/HDL_ON/UI/UI2/UserPage.cs index e8c5add..506cee4 100644 --- a/HDL_ON/UI/UI2/UserPage.cs +++ b/HDL_ON/UI/UI2/UserPage.cs @@ -131,8 +131,13 @@ #if __Android__ //寮�鍚畾浣嶆湇鍔� - Shared.Application.StartGPSLocationService(); - + try + { + Shared.Application.StartGPSLocationService(); + }catch(Exception ex) + { + MainPage.Log("寮�鍚畾浣嶆湇鍔″紓甯�:" + ex.Message); + } if (DB_ResidenceData.Instance.NeedTip) { DB_ResidenceData.Instance.LastTipTime = DateTime.Now; if (CN.Jpush.Android.Api.JPushInterface.IsNotificationEnabled(Shared.Application.Activity) != 1) -- Gitblit v1.8.0