Here's my test: curl ' https://updates.push.services.mozilla.com/update/vbZF1J7QWHxlifvKubYssoA_SAo0r5QTugpN4RVIeCG3iG0RACwNWm6QfYdaF4l0wx4Q35MIEcZfW2oU698X4fK5uGvBNZVCurekU4pn_3l6VaSjKQ==' \ -v \ -X PUT \ -d 'version=1406564146692'
See the command and output here: https://gist.github.com/coolaj86/9d33aead925da0f51cab It looks like it succeeds, but then I never get the notification. The way I'm using the push is just to notify the phone that it should GET /api/notifications/:phone-app-id from my server. It doesn't really matter which notification I'm sending since it's generally more expensive to grab notifications from several urls rather than all notifications from one url. The version is actually annoying because it has no real added value - other than perhaps letting the phone know how many version behind it is (which perhaps implies how critical it is to retrieve new notifications). I don't see that being a particular bonus. Also, I want to share the single push url among a few of my internal services, they all need to be aware of the version or they all need separate urls (which, as stated above, is less advantageous than a single url). To avoid conflicting version numbers I'm just using Date.now(). AJ ONeal (317) 426-6525 On Mon, Jul 28, 2014 at 2:52 AM, Guillermo López < [email protected]> wrote: > > 2014-07-23 8:20 GMT+02:00 <[email protected]>: > > There's very little documentation on the push server - what it is, how to >> know if it's currently operational, after how long does the push become >> stale, what is the expected delay between creating a push and receiving the >> notification, etc, etc. >> >> Anyone know where I can find those answers? >> > > Hi, > > I'm part of the team that has worked in Push and for the server on > Telefónica's side. > > As you might know, we only accept just one data by URL: which is the > version. If you send version 3, and that does not went to the device, if > you send a version 4, the latest biggest version wins, so you will receive > the version "4". There is no TTL on the server side, but we might drop the > versions DB if we need to. > > Sending and receiving should be under 0.5s of delay in most cases (if you > run under web socket, which will likely be). > > What endpoint are you sending your notification to? > > Thanks! > > -- > Guillermo López [willyaranda] > http://mozilla-hispano.org > http://twitter.com/mozilla_hispano > http://facebook.com/mozillahispano > Certified Mozillian: https://mozillians.org/willyaranda >
_______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
