Unable to get the subscription working with google-mirror-api -


i'm using sample java app. send myself card has "reply" action. reply glass using voice, don't notification. have refresh page see reply.

i've setup reverse proxy 'grok' notifications.

on starting app, see in logs: info: attempting subscribe verify_token 68840674215 callback https://mirrornotifications.appspot.com/forward?url=http://xyz.ngrok.com/notify

if make post request rest client notify-url , notifyservlet.dopost() correctly invoked.

in insertsubscription(credential credential, string callbackurl, string userid, string collection) method of mirrorclient, have hardcoded callbackurl = "https://mirrornotifications.appspot.com/forward?url=http://xyz.ngrok.com/notify";

on google api console, have added uris "javascript origins" , "redirect uris"

can please tell me missing here?

with ngrok proxy, use https://xyz.ngrok.com/notify callback url instead of having mirrornotifications.appspot.com forward request.the notifyservlet invoked when "reply" action performed.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -