Start a new topic
Answered

What's the meaning of Channels?

Hi! When trying to create an app which communication type is Push, I am able to define Channels. When looking at the Sample Push Request you will see that they become part of the URL within the last row, like variables. But what they are good for and how to use them? I don't get it. Thank you in advance!




Best Answer

Hi! Channels are like pipes for your push messages. Useful for news providers. For example, if we talk about news, I can think of such channels: World News, Economics, Entertainment, Celebrities, etc. So inside the app user will be able to choose what he/she is interested in. 

On server side, developer is able to push different messages to different channels like this:

http://<push_url>?channels=World%20News or http://<push_url>?channels=Economics. 

Also there is an ability to push to multiple channels using comma separator.
http://<push_url>?channels=Celebrities,Entertainment.

Hope this helps.


Answer

Hi! Channels are like pipes for your push messages. Useful for news providers. For example, if we talk about news, I can think of such channels: World News, Economics, Entertainment, Celebrities, etc. So inside the app user will be able to choose what he/she is interested in. 

On server side, developer is able to push different messages to different channels like this:

http://<push_url>?channels=World%20News or http://<push_url>?channels=Economics. 

Also there is an ability to push to multiple channels using comma separator.
http://<push_url>?channels=Celebrities,Entertainment.

Hope this helps.

Channels are ignored if http://<push_url> is a local push url instead of https://developer.lametric.com

Is this a bug or a feature?

Login or Signup to post a comment