php - Microsfot Azure Notifications Error: 404 No service is hosted at the specified address -
php - Microsfot Azure Notifications Error: 404 No service is hosted at the specified address -
good morning community,
i have microsoft azure service i'm trying utilize send notifications android mobile devices. followed steps in tutorial provided microsoft azure guys , when run next code send test notification,
$ message = '{"data": {"msg": "hello php!"}}'; $ notification = new notification ("gcm", $ message); $ hub-> sendnotification ($ notification, "");
i error message.
error sending notificaiton: 404 msg: 404 no service hosted @ specified address .. trackingid: e147f89a-8bad-4f73-a4c4-8f4194a728ed_g18, timestamp: 10/24/2014 2:16:15 pm
anyone have thought why happens? , know how solve it?.
i have impression maybe bug in code or set wrong on server, because rest service, should work everyone.
idk if guys need connection string or app name or t_t
as suggested @efimovandr, here http phone call request
get http://mer-extra.cloudapp.net/matches/mandarpush.php http/1.1 host: mer-extra.cloudapp.net connection: keep-alive cache-control: max-age=0 accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 user-agent: mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, gecko) chrome/38.0.2125.104 safari/537.36 accept-encoding: gzip,deflate,sdch accept-language: en-us,en;q=0.8,es;q=0.6,pt;q=0.4,th;q=0.2,gl;q=0.2 cookie: cakephp=t3foani8l7sineodcel5svplq5
and response is:
http/1.1 200 ok date: tue, 28 oct 2014 14:33:02 gmt server: apache/2.2.22 (ubuntu) x-powered-by: php/5.3.10-1ubuntu3.13 vary: accept-encoding content-length: 2230 keep-alive: timeout=5, max=100 connection: keep-alive content-type: text/html; charset=utf-8
hope help. thx!
your problem may have been same mine:
azure force notification rest no service hosted @ specified address
important thing hub name not same namespace name unlike current tutorial says is. (microsoft told me edit , update in docs).
second create sure utilize right key (defaultfullsharedaccesssignature). error had in docs.
php android azure push-notification google-cloud-messaging
Comments
Post a Comment