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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:45:56+00:00 2026-06-05T03:45:56+00:00

The main task I’m trying to achieve is to open my app with a

  • 0

The main task I’m trying to achieve is to open my app with a URL.

Adding the custom URL scheme to the appName-Info.plist everything works fine using the corresponding handleOpenUrl: etc etc.

My point is that my app has got a webSite as well. So what I’m trying to do is, given an url to my users (tiny, short url doesn’t matter) combine together these 3 different cases:

  • If the user opens the URL from his iPhone and he’s got the app installed: open the iPhone app;
  • If the user opens the URL from his iPhone and he hasn’t got the app installed: open the iTunes store URL of the app;
  • If the user open the the URL from his phone (android, tablet, etc) , or from the web, show the web page instead.

My problem is that I can achieve all these tasks separately but I cannot combine all together.

Note: tried to add the http://myApp.com to the UrlScheme but of course didn’t work coz the http:// is managed by Safari in the iPhone.

Any idea? Help and suggestions would be really appreciated. Tks a lot chaps.

  • 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-05T03:46:00+00:00Added an answer on June 5, 2026 at 3:46 am

    This SO question seems to have the answer you’re looking for:

    1. Check if the user-agent is that of an iPhone/iPod Touch
    2. Check for an appInstalled cookie
    3. If the cookie exists and is set to true, set window.location to your-uri:// (or do the redirect server side)
    4. If the cookie doesn’t exist, open a “Did you know Your Site Name has an iPhone application?” modal with a “Yep, I’ve already got it”, “Nope, but I’d love to try it”, and “Leave me alone” button.

    The “Yep” button sets the cookie to true and redirects to your-uri://
    The “Nope” button redirects to “http://itunes.com/apps/yourappname” which will open the App Store on the device
    The “Leave me alone” button sets the cookie to false and closes the modal
    The other option I’ve played with but found a little clunky was to do the following in Javascript:

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

Sidebar

Related Questions

I'm trying to create a simple app, whose main task is to open the
I'm trying to execute in Java code analogue of Ant's updateDatabase task: Main.main( new
I have below code: class Program { static void Main(string[] args) { Task[] tasks
My main program running 8 tasks using Task.Factory.StartNew Each task will request XML format
My task is to capture all the child windows of a main window recursively
I've got really simple code: static void Main(string[] args) { var task = Task.Factory.StartNew(GetInt);
My main MainWindow.xaml.cs has a lot of Task variables and as a consequence a
I am currently working on project whose main task is to read data stored
I'm going to develop an application, whose main task would be send video frames
I am trying to create a program where it performs some task and exits.

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.