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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:40:50+00:00 2026-05-26T10:40:50+00:00

Developing an HTML 5 application on new iPad’s Mobile Safari iOS 5 that displays

  • 0

Developing an HTML 5 application on new iPad’s Mobile Safari iOS 5 that displays a user prompt when a “dispatch” is received. To bring attention to the user, we have a sound that plays like this when a alert function is called:

snd.src = snd.src;
snd.play();

Unfortunately, Apple changed the methodology for playing sounds. Does anyone know if there are updates in iOS 5 that fixes this?

*Did a lot of research and already aware that the old “hack” in iOS 3 no longer works.

  • 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-26T10:40:51+00:00Added an answer on May 26, 2026 at 10:40 am

    The sounds require user input in iOS5. You can initialize the sound with an “invisible” button that disappears after one press at the initialization of your app. Once triggered, you should be able to call snd.play() programatically. It’s kind of a cheat, but hopefully it helps!

    Javascript:

    if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
    
        document.write('<a id="init" ontouchstart="javascript:sndInit();"></a>');
    
        function sndInit(){
        snd.play();
        snd.pause();
        document.getElementById('init').style.display = 'none';
        }
    }
    

    CSS:

    <style>
        #init {
            position: absolute;
            margin-right: 0px;
            margin-left: 0px;
            margin-top: 0px;
            margin-bottom: 0px;
            z-index: 1000;
        }
    </style>
    

    Also, Remy Sharp has some tips on working with audio sprites HERE.

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

Sidebar

Related Questions

When developing a new web based application which version of html should you aim
I started developing an application in Silverlight that was dealing with downloading the HTML
We are new to iOS development and this is our first application for iPad
I'm developing a phonegap/jquery-mobile test application (I'm new in this technologies) for android and
I am developing an iPhone application and I use HTML to display formatted text.
I am developing a HTML form designer that needs to generate static HTML and
I am developing an application using PHP but I am new to regular expressions,
Good Morning All, I am developing a new ASP.net MVC web application. Part of
I am developing a web application that uses JQuery AJAX and PHP to upload
I am developing an app using phonegap for Android. I want this mobile application

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.