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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:01:17+00:00 2026-06-13T22:01:17+00:00

I am building a mobile app with PhoneGap and it will download a file

  • 0

I am building a mobile app with PhoneGap and it will download a file from my server, where I have php. I am looking for a way to differentiate between my phonegap app and “every other browser” from the php. I know how to look for user agent string in php, my question is if there’s a string (like “PhoneGap”) that I’ll have in the user agent on every platform (android, iphone, etc) or if there’s a way to tell PhoneGap to use my custom user agent string.

Optionally if there’s an idea what could I do in order to serve these files when the PhoneGap FileTransfer asks for them, but not when another browser does, is welcome. I don’t want to force the users to create an account if there’s another way.

  • 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-13T22:01:18+00:00Added an answer on June 13, 2026 at 10:01 pm

    The best way is to pass additional parameter together with the upload call.
    You can determine if the page loaded from PhoneGap or not using JavaScript, to do that read my post about it here.

    Another way, but it’s not perfect is to search in the UserAgent if it’s iPhone/iPad/iPod/Android/BlackBerry/…

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

Sidebar

Related Questions

I have a mobile app which I'm building up with PhoneGap and jQuery Mobile.
I am building Dojo mobile app. I have a Json file like: { Introduction:
I am building Dojo mobile app. I have a Json file like: { Introduction:
I'm building a PhoneGap Mobile application where I get data from a server with
I am building a cross-platform mobile app in jQueryMobile and PhoneGap and am currently
We are looking at building a cross-platform mobile app for iPhone, Android, etc. In
I'm building a windows mobile app. And using SqlCe. I'm looking for a good
I am building a mobile application in Flex 4.5 and from this app I
I'm building a mobile app with PhoneGap and I need it to fit into
I am building an mobile flex app in eclipse indigo and have my app

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.