订阅未收到时间表通知 [英] Subscriptions not receiving timeline notification

查看:71
本文介绍了订阅未收到时间表通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了与此问题中描述的问题相同的问题-订阅未接收到时间轴通知.

I'm encountering the same problem described on this question - Subscriptions Not Receiving Timeline Notifications.

我的应用最后一次收到时间表通知的时间是11/13.

The last time my app received a timeline notification was on 11/13.

这就是我所做的:

  1. 使用ASP.NET快速入门创建我的项目

  1. Created my project using the ASP.NET Quick Start

使用HTTPS将项目部署到面向公众的Web服务器( https://www.bsudevtech .myhosting.me )

Deployed the project to a public facing web server, with HTTPS (https://www.bsudevtech.myhosting.me)

当用户在网站上进行身份验证时,将创建一个时间轴订阅-我已通过在整个应用程序中添加将记录插入后端SQL Server的检查点来对此进行验证.我还使用詹妮对原始帖子的评论对此进行了验证-我可以看到我的应用的时间轴订阅,我的Google帐户ID和通知帖子的正确URL.

When users authenticate on the web site, a timeline subscription is created - I have verified this by adding checkpoints throughout the app that insert a record into a backend SQL Server. I have also verified this using Jenny's comment on the original post - I can see the timeline subscription for my app, for my Google Account ID and the correct URL for notification posts.

在我的Android应用中,我能够成功创建共享联系人

From my Android app, I'm able to successfully create sharing contacts

我可以在Glass上拍照并与其中一个联系人共享

From Glass, I can take a photo and share with one of those contacts

照片在时间轴上重复

照片从不通过ASP.NET应用程序上的通知控制器,并且在IIS日志中看不到控制器的任何点击

The photo never comes through the notification controller on the ASP.NET app and I do not see any hits to the controller in the IIS logs

我可以从我的Android应用发送时间轴项目,并且它们会显示在Glass上,但我无法使共享照片"正常工作.创建共享联系人时,这是我使用的方式:

I can send timeline items from my Android app and they appear on Glass, I just cannot get the "share photo" to work properly. When creating my share contact, here's what I used:

ID =联系人的唯一ID

ID = unique ID for the contact

显示名称

图片网址

接受类型=图片/jpeg和图片/png

Accept Types = image/jpeg and image/png

共享功能="ADD_CAPTION"

Sharing Features = "ADD_CAPTION"

我也将日志记录添加到了通知控制器中,并且没有任何日志记录出现在我的后端数据库中,因此,再加上该页面没有出现在日志记录中的事实,因此在共享照片后不会调用该页面与Glass上的共享联系人.

I've added logging to the notification controller as well and none of the logging ever appears in my backend database, so coupled with the fact the page doesn't appear in the logs, it's not being called after the photo is shared with the sharing contact on Glass.

在操场上,我可以看到重复的时间轴项目:

From the Playground, I can see the duplicate timeline item:

{
  "kind": "mirror#timelineItem",
  "id": "5ef229b1-708e-4a3a-a7c0-8a9451fc47ce",
  "created": "2013-11-20T18:19:05.865Z",
  "updated": "2013-11-20T18:19:08.984Z",
  "displayTime": "2013-11-20T18:19:05.865Z",
  "etag": "1384971548984",
  "recipients": [
    {
      "kind": "mirror#contact",
      "source": "api:143178395015",
      "id": "28f773ad-bb35-4ffa-b07c-c2997a208528",
      "displayName": "Educause",
      "imageUrls": [
        "https://apps.bsu.edu/androidservicehandler/images/traveler/glass_contact.png"
      ],
      "priority": 1
    }
  ],
  "attachments": [
    {
      "id": "ps:5948400824138489778",
      "contentType": "image/jpeg"
    }
  ],
  "menuItems": [
    {
      "action": "DELETE"
    }
  ]
}

欢迎您提出除原始帖子之外的任何建议!

Any suggestions beyond those on the original post are welcomed!

推荐答案

在不断调试和解决此问题的过程中,我可能已经找到解决方案-Google之间的后端通信是否有问题Mirror API和我的Web应用程序.无论如何,我现在收到共享"通知.

In a continued effort to debug and figure out this problem, I may have found a resolution - that or there was something going on with the backend communication between the Google Mirror API and my web app. Regardless, I am now receiving "share" notifications.

通常,我的Glassware可以作为现有Android应用程序的伴侣.除了订阅时间轴通知(通过HTTPS Web应用程序处理)以外,所有功能都通过该应用程序处理-插入/删除联系人和其他时间轴卡.

In general, my Glassware serves as a companion to an existing Android app. Other than subscribing to timeline notifications (which is handled via the HTTPS web app), all functionality is handled via the app - inserting/deleting contacts and other timeline cards.

  1. 通过我的眼镜"网站删除了我的Glassware和所有权限
  2. 等待5到10分钟,然后访问我的Glassware的登录页面并重新进行身份验证
  3. 刷新My Glass网站,以确认Glassware已与Facebook,Evernote等其他人一起列出.
  4. 在Android应用中,我注销并重新登录以为我的应用和Glassware生成新的身份验证令牌
  5. 在Android应用中,我删除了我创建的所有现有共享联系人"
  6. 重新启动的玻璃
  7. 确认已删除所有共享联系人(试图共享照片并仅验证了Google+圈子和Facebook群组)
  8. 在Android应用中,我重新创建了共享联系人
  9. 在Glass上,我拍了张照片,选择了分享"并选择了我刚刚创建的联系人
  10. 在几秒钟内,时间轴通知到达并且证卡已更新,并且检查我的后端数据库确认照片是通过通知控制器到达的.
  1. Removed my Glassware and all permissions via the My Glass web site
  2. Waited 5-10 minutes and visited the sign-in page for my Glassware and re-authenticated
  3. Refreshed the My Glass web site to confirm the Glassware was listed with others like Facebook, Evernote, etc.
  4. In the Android app, I signed out and signed back in to generate the new auth token for my app and the Glassware
  5. In the Android app, I deleted all existing "share contacts" I had created
  6. Rebooted Glass
  7. Confirmed that all share contacts were removed (attempted to Share a photo and verified only G+ circles and Facebook groups appeared)
  8. In the Android app, I recreated the share contact
  9. On Glass, I took a photo, selected Share and picked the contact I just created
  10. Within seconds, the timeline notification arrived and the card was updated, and checking my backend database confirmed that the photo arrived via the notification controller

同样,我无法100%肯定地确认此过程已解决问题,但是我没有在Android应用或Glassware通知处理程序中进行任何代码更改,并且我一直在尝试使其适用于2天.

Again, I cannot, with 100% certainty, confirm that this process resolved the issue, but I did not make any code changes in either the Android app or the Glassware notification handler and I have been trying to get this to work for 2 days.

这篇关于订阅未收到时间表通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆