Safari is the web browser developed by Apple and built into all Apple devices.

Safari Documentation

Posts under Safari tag

399 Posts
Sort by:
Post not yet marked as solved
8 Replies
5.4k Views
Hi Guys,We are converting our web app into PWA, in that process we are facing the following issue.We have OAuth implementation for sign-in into the app. This flow works perfectly in Safari browser on iPad iOS 11.3.However, The issue is OAuth workflow being broken on iOS 11.3when using the PWA after doing the add to home screen.Reproducing steps:1)Open the web app in the Safari browser using app URL in IPad iOS 11.32)Add the app to the home screen using the 'add to home screen' option3)Tapping on the shortcut icon would open the OAuth sign-in flow in Safari browser tab and get redirected back to the browser itself instead of sandbox PWA app.Could anyone let us know Is this a bug in PWA support of iOS 11.3?We are stuck with this issue, Is there any workaround for this issue? Looking for the prompt responses, any suggestions or feedbacks are highly appreciable. Thank you,Apoorva
Posted
by
Post not yet marked as solved
12 Replies
4.6k Views
All of my third party extensions have blue icons now, in Safari 14.0. It looks pretty awful. Is there a way to keep the monochrome colors or a way for us, as developers, to provide a different kind of icon to sustain the monochrome colors for our extensions? I am assuming the blue color denotes something, like the extension being "active". I wasn't able to find documentation on this change nor any related api doc.
Posted
by
Post not yet marked as solved
1 Replies
685 Views
Hi, i want to do show the "Are you sure you want to leave this page?" in iOS Safari. How can I do that? On desktop browsers, I use this snippet (ReactJS): window.addEventListener('beforeunload', onUnload) And the implementation: useUnload((e) => { 		e.preventDefault() // Required for Firefox 		e.returnValue = '' 		delete e.returnValue 	}) Thanks!
Posted
by
Post not yet marked as solved
2 Replies
1.8k Views
I'm trying to record my screen (canvas) on iPad safari with the new experiential media recorder support. I got the mediaRecorder object and it triggers the start event but the issue is whenever mediaRecored record blob it will not trigger the stop event. It is working fine of MAC Safari but on iPad Safari I'm getting this issue. Is there any ways to get the stop event so mediaRecorder fire ondataavailable method after stop on iPad Safari?
Posted
by
Post not yet marked as solved
2 Replies
6.8k Views
On iOS 14 you can pick another default browser than Safari. If you use another browser, that browser will ask the user to change their default browser.  I have installed quite a few browsers (Chrome, Firefox, Edge, Opera, Brave...) and have set each of them as my default one. Problem comes when I try to open a Universal Link (which was working just fine when Safari was the default browser), which seems to just not work. With Safari as default browser, the Universal Link would work, and the corresponding native app was getting opened. However, with any other browser different from Safari set as default, the feature is broken and the Universal Link doesn't open the native app. Has anyone experienced anything similar? Why might this happen and how might this be solved? Any help is very much welcomed
Posted
by
Post marked as solved
14 Replies
3.1k Views
Hi folks, We're building a Safari web extension and experiencing an issue to see it among extensions in Safari after installing the container app to /Applications and launching it. The app and extension is notarized and signed with Developer ID After an extensive investigation, we found the following log records in the Console app (the extension ID is redacted): Computing the code signing dictionary failed for extension with identifier com.youcompany.safariext Blocking extension with identifier: com.youcompany.safariext To debug the issue, we've created a HelloWorld-like extension generated by Xcode 12.2 beta 4 (http s://sharedartifacts.s3.eu-central-1.amazonaws.com/safariext.app.zip contains a signed app bundle) It also is under the same code signing issue. According to https://developer.apple.com/documentation/xcode/notarizing_macos_software_before_distribution/resolving_common_notarization_issues, we've run a few checks to verify: code signature ➜	Desktop codesign -vvv --deep --strict ./safariext.app					 ...-prepared:/Users/nikolay/Desktop/safariext.app/Contents/PlugIns/safariext Extension.appex ...-validated:/Users/nikolay/Desktop/safariext.app/Contents/PlugIns/safariext Extension.appex ... ./safariext.app: valid on disk ./safariext.app: satisfies its Designated Requirement signing certificate ➜	Desktop spctl -vvv --assess --type exec ./safariext.app		 ./safariext.app: accepted source=Notarized Developer ID origin=Developer ID secure timestamp ... Timestamp=25 Nov 2020 at 22:23:54 ... We seemed to have all checks good, the extension can be installed only if Safari is allowed to run unsigned extensions. Could anyone assist to debug/resolve this issue? Thanks
Posted
by
Post not yet marked as solved
1 Replies
1k Views
Hi, i have this problem in web app context running in safari 14.0 on Apple Iphone X device. It seems that when i capture the user's microphone via: var opts = { //audio: true, audio: true, video: true }; navigator.mediaDevices.getUserMedia(opts) This causes all audio playback within the page to be played as mono e.g. i have a file that should only be heard through the left headphone and it is heard through both headphones. Setting audio to false above means that the audio files play normally. Seems like some sort of bug where capturing the microphone seems to affect the output audio context. Any advice on what i can do to be able to get microphone input and stereo output simultaneously?
Posted
by
Post not yet marked as solved
5 Replies
3.2k Views
We are currently experiencing a usability issue in our App. We also discovered this issue for sites in Safari as well. While using Voiceover in iOS 13.3+, we've discovered that VO skips all tables that are using a caption. This occurs when a user swipes to read the contents of the page. We also observed that using the "rotor" and choosing tables, it will not recognize that there is a table on the page. This has been repeated by multiple users on different devices. Our testing also encompassed VO on macOS Catalina and VO worked as expected for all tables we tested. Has anyone else come across this issue?
Posted
by
Post not yet marked as solved
3 Replies
1.5k Views
Is there a way to offer a one click installation of a PWA or prompt the user to install it in Safari on iOS? Hitting Share then Add to home page is pretty clunky for the user and means having to provide instructions within the app on how to install from Safari.
Posted
by
Post not yet marked as solved
2 Replies
668 Views
My understanding is that the iOS service worker does not support background sync or a periodic sync. ( if this is not true please point me to the documentation that describes the support of these features... ) High level use case. My users of my app will be filling out forms during the day while off line ( out of cell phone coverage )... then at the end of the day they will travel back into coverage at which point the WEB app would automatically send those POSTS without User interaction. How would you accomplish this on an iOS device... ( key is without having to relaunch the app ) thank you
Posted
by
Post not yet marked as solved
2 Replies
1.8k Views
When using the command open in the terminal, there seems to be this weird issue/behavior where if run to open a specific application (in this case Safari) where my current default browser is Chrome, the following command would open up in both Safari and my default browser. open -a /Application/Safari.app/ https://www.google.com Opening up a different browser, such as Firefox does not have this issue. In that case, only the specified application does run as expected. open -a /Application/Firefox.app/ https://www.google.com open -a Firefox https://www.google.com Is this a bug or a desired effect? (Tested macOS 11.4)
Posted
by
Post not yet marked as solved
2 Replies
2.3k Views
What can we expect from Apple / Safari in terms of Manifest v3? When/if will it be supported? When is the end of life for manifest v2?
Posted
by
Post not yet marked as solved
3 Replies
2.3k Views
Currently in iOS Safari and Chrome, when you share a link via the share button, the link that gets copied is the canonical URL. The site that I am working on has a different website listed as the canonical URL (it's a requirement that can't be changed). Is it possible to force iOS Safari and Chrome so copy my website's original URL, instead of the canonical URL? My canonical urls are included in my site via the following tag: <link rel="canonical" href="www.example.com">
Posted
by
Post marked as solved
6 Replies
4.0k Views
After upgrading to macOS Monterey, Safari keeps showing authentication prompts for the on-premises Azure DevOps instance. Interesting that I can keep pressing the cancel button on the login form, and it works. In other browsers (Microsoft Edge, Chrome), all works fine -- I enter login/password one time and it never asks me again. In the browser tab, I see that the /connect request got stuck, but I don't know how to troubleshoot it further. Any suggestions? Environment information: macOS version: 12.0.1 Safari version: 15.1 Azure DevOps Server 2020 Update 1.1
Post not yet marked as solved
4 Replies
2.1k Views
Hi, I'm using MediaRecorder for screen recording of canvas , along with audio. simplified code to implement screen recorder //intialise stream const canvas = document.querySelector('.main-canvas'); const stream = await navigator.mediaDevices.getUserMedia({ audio: true }); for (let track of canvas.captureStream().getTracks()) { stream.addTrack(track); } recorder = new MediaRecorder(stream); chunks = []; recorder.ondataavailable = ({ data }) => { if (data) chunks.push(data); }; recorder.start(); recorder.onstop = () => { const videoBlob = new Blob(chunks, { type: 'video/mp4' }); chunks = [] //stop mic access after use try{ for (let track of stream.getTracks()) { track?.stop(); } }catch(e){} return videoBlob; } so when i call recorder.stop() , the recorder.onstop method is not getting called sometimes randomly. And also in case when recorder.onstop is not called , recorder.ondataavailable is not called even a single time,So it returns empty Blob output. This only occurs in iOS 15 device's , it occurs randomly 40% of the times. Is there any workaround for this, or what is cause of this issue? Thanks in advance
Posted
by
Post not yet marked as solved
3 Replies
2.9k Views
Hi guys, I have built a PWA that calls the javascript API navigator.geolocation.getCurrentPosition which prompts the user for location access when the Safari permission is set to Ask. This is the correct behavior and works as expected when open in Safari. However when added to the Home Screen and running with a display mode of "standalone", the location alert does not open on my phone (iPhone 13 mini / iOS 15.1.1). And the call never times out. Then if I switch from the PWA to Safari the location alert / prompt is suddenly showing in Safari. So it seems that the alert is targeting the wrong "tab". This does not happen if the PWA display mode is "browser" or "mimimal-ui" with either of those it behaves normally. I can only replicate this on my phone (iPhone 13 mini / iOS 15.1.1). I have also tested on various older phones (15.1.1 and 14.7) as well as several emulators and they all behave as expected. It is possible this is a obscure setting on my phone but it does feel a lot like an iOS Safari bug.
Posted
by