What's the point? Why not just forward a message to XMPP, Telegram, WhatsApp or email? You know, to the app users actually use. Why make them install one more quasi-messenger?
This would be nice for websites and services users want to get push notifications from. I get that html5 notifications should be able to do this at some point but there is still merit in having another way of getting stuff to your phone and possibly desktop.
Messages via JSON
21–30 of 129 posts
Re: Messages via JSON
#22Re: Messages via JSON
#23Earlier quoted context omitted.
> The application with the required frequency directly checks JSON on the web service side How charming.
What's wrong with that?
Re: Messages via JSON
#24I would have done it using server-sent events instead.
Re: Messages via JSON
#25Re: Messages via JSON
#26> Request signature format(crc): [time_stamp]_[md5(time_stamp+secret_key)] This should probably be an HMAC construction at the very least, and MD5 in general just should be discarded entirely in favor of BLAKE2b, SHA-2 or SHA-3. And ideally, it'd actually validate the rest of the contents as well.
Also the example PHP code doesn't validate the age of the passed timestamp so you could just replay a "signature" indefinitely... Given that, you might as well just use an unchanging token or Basic Auth. Assuming https, that wouldn't be terrible for this kind of use case. But put it in an Authorization header, not in a query parameter, so it doesn't end up in logs.
Sounds like a cool little thing, but wouldn't mind a standard to use on non-mobile platforms.
Re: Messages via JSON
#27Earlier quoted context omitted.
What's wrong with that?
Not the poster but it may be useful to know that Andrew_nenakhov is a CEO of company that provides a Jabber messanger (Xabber).
Re: Messages via JSON
#28Re: Messages via JSON
#29Nice idea. Does it poll though? How do you prevent receiving the same message twice? I would have done it using server-sent events instead.