| | |
| | | } |
| | | public override void DidReceiveRemoteNotification(UIApplication application, NSDictionary userInfo, Action<UIBackgroundFetchResult> completionHandler) |
| | | { |
| | | |
| | | if (userInfo == null) |
| | | { |
| | | //var alert = new Alert("", "userInfo为空", ""); |
| | | //alert.Show(); |
| | | return; |
| | | } |
| | | Console.WriteLine(userInfo); |
| | |
| | | if (application.ApplicationState == UIApplicationState.Active || application.ApplicationState == UIApplicationState.Background) |
| | | { |
| | | NSString key_hiddenJson = new NSString("HiddenJson"); |
| | | //var alert1 = new Alert("", "收到推送了", ""); |
| | | //alert1.Show(); |
| | | if (userInfo.ContainsKey(key_hiddenJson)) |
| | | { |
| | | var hiddenJson = userInfo["HiddenJson"].ToString();
|
| | | |
| | | var hiddenJson = userInfo["HiddenJson"].ToString(); |
| | | |
| | | //var alert = new Alert("", hiddenJson, ""); |
| | | //alert.Show();
|
| | |
|
| | | if (string.IsNullOrEmpty(hiddenJson))
|
| | | {
|
| | | return;
|
| | |
| | | {
|
| | |
|
| | | ///目前根据这个判断是否是可视对讲数据
|
| | | VideoMethod(hiddenJson);
|
| | | //VideoMethod(hiddenJson);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | if (hiddenJson.Contains("cmtID"))
|
| | | {
|
| | | ///目前根据这个判断是否是可视对讲数据
|
| | | VideoMethod(hiddenJson);
|
| | | //VideoMethod(hiddenJson);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | |
| | | public override void ReceivedRemoteNotification(UIApplication application, NSDictionary userInfo) |
| | | { |
| | | |
| | | Console.WriteLine(userInfo); |
| | | if (application.ApplicationState == UIApplicationState.Active) |
| | | { |
| | |
| | | } |
| | | //检查连接远程 |
| | | //代码 |
| | | |
| | | //清除角标 |
| | | CommonPage.Instance.clearBadgeNum(); |
| | | } |
| | | |
| | | public override void WillTerminate(UIApplication application) |