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

The Archive Base Latest Questions

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

We have mobile applications on iPhone and Android (and soon to be released Blackberry).

  • 0

We have mobile applications on iPhone and Android (and soon to be released Blackberry). The app functionality is the same – we just support several different devices. The app communicates with a back-end web service to receive data.

Now, in the web application, is there any way to easily determine what type of device is connecting to it? Here’s what I have available:

  1. serial number (or unique ID) of the device (note that in android simulator it’s always 000000000000 and in iphone simulator the format is totally different from actual iphone)

  2. in iphone app, connections are made using NSMutableUrlRequest / NSURLConnection, in Android connections are made using org.apache.http.client.HttpClient

  3. The server web app is written in PHP.

  4. I am willing to settle for a “best-guess” approximation: if I’m right 95% of the time, it’s good enough for my purpose.

I’m not sure about any of the blackberry stuff, because that app is still not ready.

Any ideas/help are greatly appreciated. Many thanks.

  • 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-27T22:03:22+00:00Added an answer on May 27, 2026 at 10:03 pm

    You could look at the user agent that is hitting the HTTP API and sniff that. That’ll work at least 95% of the time. iOS apps will have something like CFNetwork/xxx.xx.x in them. For Android / Blackberry just try it out and see what they are. Alternatively change your app to set the user agent yourself so you will know exactly what version of your app, etc is hitting the API.

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

Sidebar

Related Questions

I am developing applications for mobile phones with different operating systems (Android, Symbian, iPhone).
I am new to mobile application technologies.... We are developing applications for iPhone/android/blackberry/windows mobile.
I'm writing the HTML for a hybrid (iPhone/Android/Blackberry) mobile application. I'm not directly involved
I am creating mobile application in asp.net webform targeting IPhone, Android and blackberry. I
Q: How does Web Applications differ from SmartPhone Applications (Iphone, Windows Mobile, Android/Nexus Application)
Applications which run on mobile devices have special user interface requirements. I think Apple
I have web application for mobile (developed in .net), I want to use iPhone
These days everyone who worked in mobile software talks about Android and iPhone. I
we are planning to introduce push applications to our mobile apps (for Android phone
We are developing a mobile application(iPhone, Android, WM) which mainly connects with the server

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.