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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:52:10+00:00 2026-06-13T08:52:10+00:00

I have a webpage that uses custom protocol handlers to open apps. One links

  • 0

I have a webpage that uses custom protocol handlers to open apps. One links to the iTunes store app for people to download Picup app, and another links to fileupload:// to open the Picup app.

When the page is loaded into Safari embedded inside another app (e.g. 1Step Scanner barcode scanner), when navigating to those custom protocols, I get an error message – Error, Failed to Load Webpage! Please Try Again.

I intend to use JavaScript to detect whether the webpage is loaded inside an embedded browser and show a message to ask the user to use Safari.

One way is to detect the user agent string

Embedded

Mozilla/5.0 (iPhone; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9A405

Safari

Mozilla/5.0 (iPhone; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A405 Safari/7534.48.3

However, is detecting the presence/absence of the word Safari in the user agent string applicable for all versions of iPhone? Is there a more foolproof method?

  • 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-13T08:52:11+00:00Added an answer on June 13, 2026 at 8:52 am

    Apparently yes, that’s the best way.

    Even Chrome for iOs includes the word Safari on requests, so you should be fine with assuming that requests from iOs without the word “Safari” are from an embedded UiWebKit control.

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

Sidebar

Related Questions

I have a webpage that uses an iFrame (see http://little-apps.org/lilregcleaner/history.html ) and (of course)
I have a webpage that uses a custom plugin, like this: <embed height=0 width=0
I have a nodejs script that uses phantomjs-node to scrape a webpage. It works
I have written a program that uses qhttp to get a webpage. This works
I have a rails app that uses PDFKit to render pdf versions of webpages.
I have a php web page that now uses custom error pages when a
I have a webpage that uses a Treeview. In the treeview are nodes and
I have a webpage that uses different languages stored in localStorage, and on the
I have a rather small part of my webpage that uses a definition list
We have a webpage that works fine on the local computer as it uses

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.