사용자 정의 메뉴 항목을 선택하면 서버에 파일 (모든 입력을 텍스트 파일에 기록)을 핑하는 Google 미러 API 가입이 생성되었습니다. 문제는 서버의 파일에 ping이 수행되지 않고 로그 파일이 업데이트되지 않는다는 것입니다.서버가 사용자 정의 메뉴 항목에서 알림을 수신하지 않습니다.
Google_SubscriptionsListResponse Object
(
[__itemsType:protected] => Google_Subscription
[__itemsDataType:protected] => array
[items] => Array
(
[0] => Google_Subscription Object
(
[callbackUrl] => https://gpop-server.com/glass-notifications/post.php
[collection] => timeline
[id] => timeline
[kind] => mirror#subscription
[__notificationType:protected] => Google_Notification
[__notificationDataType:protected] =>
[notification] =>
[operation] => Array
(
[0] => UPDATE
[1] => INSERT
)
[updated] => 2014-04-27T16:29:28.309Z
[userToken] => 113161576523948071568
[verifyToken] => 535d306816bdb
)
)
[kind] => mirror#subscriptionsList
)
Google_MenuItem Object
(
[action] => CUSTOM
[id] => notify
[payload] => custom
[removeWhenSelected] =>
[__valuesType:protected] => Google_MenuValue
[__valuesDataType:protected] => array
[values] => Array
(
[0] => Google_MenuValue Object
(
[displayName] => Notify Server
[iconUrl] =>
[state] =>
)
)
)
내가 비슷한 했어 : I는 참조 용으로 아래에있는 내 가입 대상 및 메뉴 객체 모두를 포함했다 http://www.gpop-server.com/glass-notifications/
:이 앱은 PHP로 작성하고 아래에 액세스 할 수 있습니다
이 작업은 몇 주 전부터 완벽하게 진행되었으므로 Glass 펌웨어 업데이트로 부주의 한 결과를 초래하지는 않았 으면합니다. 어떤 도움이라도 대단히 감사합니다!
포로 감사합니다! MenuValue에 DEFAULT 상태를 추가 할 수 있었고 CURL을 사용하여 일부 테스트를 수행했으며 서버를 성공적으로 ping 할 수있었습니다. 그러나 Google Glass (XE 16.2)를 사용할 때 문제가 계속 발생합니다. Mirror API Playground (https://developers.google.com/glass/tools-downloads/playground)를 사용할 때 알림이 서버를 올바르게 ping 할 수 있으므로 펌웨어 버그 일 수 있습니다. 나는이 문제와 관련하여 Google에 직접 연락을 했으므로 희망적으로 그렇게 밝혀졌습니다. – IbrahimKabil