Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8598727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:13:24+00:00 2026-06-12T01:13:24+00:00

I created a working Google Channel AP and now I would like to send

  • 0

I created a working Google Channel AP and now I would like to send a message to all clients.

I have two servlets. The first creates the channel and tells the clients the userid and token. The second one is called by an http post and should send the message.

To send a message to a client, I use:

channelService.sendMessage(new ChannelMessage(channelUserId, "This is a server message!"));

This sends the message just to one client. How could I send this to all?

Have I to store every Id which I use to create a channel and send the message for every id? How could I pass the Ids to the second servlet?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T01:13:26+00:00Added an answer on June 12, 2026 at 1:13 am

    Using Channel API it is not possible to create one channel and then having many subscribers to it. The server creates a unique channel for individual JavaScript clients, so if you have the same Client ID the messages will be received only by one.

    If you want to send the same message to multiple clients, in short, you will have to keep a track of active clients and send the same message to all of them.

    If that approach sounds scary and messy, consider using PubNub for your push notification messages, where you can easily create one channel and have many subscribers. To make it run on Google App Engine is not that hard, since they support almost any platform or device.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on an iPhone project, where we created all the user
I am working on Google In-app purchase for an app. I have created a
I have created a HelloWorld Controller and it's corresponding view. All is working correctly
I am working in Google Maps and have three+ tile overlays to create. An
I created a GPA spreadsheet in excel and have the basics working but I
I'm working on a google analytics dashboard for a CMS I've created. I'm trying
I've been working for a few weeks now with the Google Maps API v3,
i have read the thread Google Goggles API . and From NotAnotherCodeBlog have created
I have created a site twoo years ago in php and now converting it
I have been using Google app engine for ~2 years now and love it.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.