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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:27:08+00:00 2026-05-21T23:27:08+00:00

Bit of a niche question really. When I say securely, I don’t mean SSL.

  • 0

Bit of a niche question really. When I say “securely”, I don’t mean SSL.

Basically I’ve been working on adding C2DM push messaging to my app, and on my test bed, this all works fine and notifications are received. I was following this guide:
http://blog.mediarain.com/2011/03/simple-google-android-c2dm-tutorial-push-notifications-for-android/

Now I’m all fine with that and I fully understand it, my problem is the passing of the device’s unique ID to my web server which is forwarding the messages. Say for example that in order to add the device ID to my database of IDs to message, it makes a call like so:
http://www.example.com/add_id?id=unique_id_here

Which inserts that ID into my database, adding it to the list of devices I have available to push messages to, what’s to stop someone just visiting that URL and filling my database with crap by submitting fake IDs? Is there any way I can verify the data I’m receiving there, or verify the connection is coming from my app?

  • 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-05-21T23:27:09+00:00Added an answer on May 21, 2026 at 11:27 pm

    Note This is now edited for a much more obvious answer; my original answer is at the end, in case anyone finds the ideas useful

    This is actually pretty simple. Send the message as a POST, and provide some form of digital signature with it. This could be as simple as an MD5 hash of the (message+secret). When you receive the POST, perform the same hash, and if the hashes match:

    • It came from your app
    • It came from someone reverse engineering your app

    Sadly #2 is impossible to rule out completely, all you can do is obfusticate code to raise the bar, and monitor the server for suspicious activity.


    The old answer

    In principal nothing; networks & handset manufacturers generally make sure a specific device doesn’t send identifying headers, because of privacy concerns and laws. Even if these were present, they could be faked.

    You’ll need to authenticate a client somehow. This can be done in one of several ways:

    • per-device unique username/password as a one-time config by user.
    • per-device unique ID distributed via SMS (requires device phone number, and SMS permissions for app)
    • per-device unique ID via License Manager APIs (not investigated, but almost certain to exist, as each client is individually licensed)

    I’m assuming the fake data is only an issue if it’s associated with the wrong device, and someone corrupting their own data is odd, but not problematic.

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

Sidebar

Related Questions

I know this type of question has been asked a lot, but I really
OK, the question title is a bit crappy, but I didn't really know how
Bit of an unusual question, but I have setup a field inside a MySQL
Bit of a javascript newbie so not sure if this question is easy or
Bit of a strange question here i know. but i wanted to know if
Bit support question. Apologies for that. I have an application linked with GNU readline.
Bit of a philosophical question. If you have a public website with a site
Bit of an odd question but is there a way of seeing what objects
Using SQL Server 2008. This is a really junior question and I could really
Sorry for the title.....bit difficult to word what I really want to ask. Some

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.