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 8570203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:30:19+00:00 2026-06-11T18:30:19+00:00

I have two android devices that runs a gcm client app. I get the

  • 0

I have two android devices that runs a gcm client app. I get the Reg IDs of both the devices. I also have a server API key. Now the thing is, Using a simple php code using cUrl or Zend framework, I’m able to send message from a web server to one of my droids (Of course I can broadcast too). But, with this in hand, is there any way to send a string from one device to another?

  • 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-11T18:30:20+00:00Added an answer on June 11, 2026 at 6:30 pm

    Quoting myself from my book:

    You might be tempted to use GCM for peer-to-peer messaging, without a server of
    your own. In effect, each Android app is its own server, using the same JAR you
    might use in a Web app inside your Android app to send messages to some other
    party. For example, you could implement a chat system without having a dedicated
    chat server.

    The danger here is that this would require your API key to be embedded within
    your Android application. Anyone with that API key is perfectly capable of forging
    messages from you. The IP address restrictions you could place on that API key are
    unlikely to help, since your legitimate uses might come from any IP address, not
    just some single server. Since finding magic strings in APK files is not that difficult
    for those with the inclination, putting your API key in your APK file is a dangerous
    move.

    Hence, you will want some server of your own as a middleman.

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

Sidebar

Related Questions

I have two Android devices. One is acting as a server and the other
I'm attempting to write an app that involves connecting two android devices via bluetooth.
I have two android applications that I have developed. I need to compare the
I have an app that appears to work fine on an android 2.3.5 phone,
I have developed a REST based server in java for Android devices and Desktop
I have two android devices for testing. One is with resolution 480x320 and other
I have two dev devices one an android 2.2 phone and the other a
Is there a way to have two different Java code for one Android app?
We have a working app and server that uses C2DM to push messages to
I have two device: HTC Desire with Android 2.2 Froyo and HTC Evo 3D

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.