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

  • Home
  • SEARCH
  • 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 8559311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:00:46+00:00 2026-06-11T16:00:46+00:00

I am a iPhone developer. I know that we can open iphone app from

  • 0

I am a iPhone developer. I know that we can open iphone app from other apps using CustomURL Scheme and calling that from openURL: method.

What I am looking for I want to open my app which has some customURLScheme registered in plist file from a php web pages. I have a very little knowledge on PHP. I know that I can check that the client browser from where we got request is iphone safari or not.

now I have following logic to follow:

if(Client == iPhoneSafari) {
    //Open My App URL
}

For opening app from iphone to iphone we use following code:

[[UIApplication sharedApplication] openURL:myURL];

I have checked This Link and I want to make sure that the same code of iphone will work for web page opened in iphone safari or not??

If no than I want to know what code we need to write for samething to do in webpage for opening app.

I know this is very silly to ask for code here.. but I don’t know about PHP and I am not aware with syntax.

Thanks In Advance

  • 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-11T16:00:48+00:00Added an answer on June 11, 2026 at 4:00 pm

    Presuming you have already setup the custom URL scheme in your plist file, you can do something like this in PHP:

    <?php
    
    function isIphone($user_agent=NULL) {
        if(!isset($user_agent)) {
            $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';
        }
        return (strpos($user_agent, 'iPhone') !== FALSE);
    }
    
    if(isIphone()) {
        //header('Location: myapp://
        //exit();
        ?><a href="myapp://">Tap this to launch application</a><?php
    } else {
    ?><h1>Visit this page in iOS</h1><?php
    }
    
    // THE REST OF YOUR CODE HERE
    
    ?>
    

    You check which browser it is using the UserAgent and then show a hyperlink leading to your custom URL scheme.

    You can also use php-mobile-detect: http://code.google.com/p/php-mobile-detect/

    This has a very convenient function for detecting iPad, iPhone and iPod browsers all in one. The above example works only for iPhone.

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

Sidebar

Related Questions

I'm developing an iPhone web app following some of the suggestions that can be
I am starting to develop apps for iPhone. There is 1 specific app that
I am an iPhone Developer, now I am making an App that need to
What languages can be used to develop for the iPhone? I know, I know:
Do I need iPhone developer certificate and the app available on the app store
I've got an iPhone app that runs on the device. Now I need to
I have face a problem that all my app in my iphone is not
A developing consensus among the iPhone developer community is that Apple has recently started
I have a shed load of 'aps_developer_identity.cer' certificates exported from iPhone Developer portal. They
I want to know, if an iPhone app is targeted on a specific organisation?

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.