| | |
| | | } |
| | | if (DB_ResidenceData.Instance.NeedTip) { |
| | | DB_ResidenceData.Instance.LastTipTime = DateTime.Now; |
| | | if (CN.Jpush.Android.Api.JPushInterface.IsNotificationEnabled(Shared.Application.Activity) != 1) |
| | | { |
| | | Action action = () => |
| | | { |
| | | CN.Jpush.Android.Api.JPushInterface.GoToAppNotificationSettings(Shared.Application.Activity); |
| | | }; |
| | | Shared.Application.RunOnMainThread(() => |
| | | { |
| | | new HDL_ON.UI.ConfirmDialog().ShowDialog(StringId.Tip, StringId.Android_MessagePushTip, action); |
| | | }); |
| | | } |
| | | //if (CN.Jpush.Android.Api.JPushInterface.IsNotificationEnabled(Shared.Application.Activity) != 1) |
| | | //{ |
| | | // Action action = () => |
| | | // { |
| | | // CN.Jpush.Android.Api.JPushInterface.GoToAppNotificationSettings(Shared.Application.Activity); |
| | | // }; |
| | | // Shared.Application.RunOnMainThread(() => |
| | | // { |
| | | // new HDL_ON.UI.ConfirmDialog().ShowDialog(StringId.Tip, StringId.Android_MessagePushTip, action); |
| | | // }); |
| | | //} |
| | | } |
| | | #endif |
| | | |