Safari and Web

Enable web views and services in your apps.

Posts under Safari and Web tag

333 results found
Post marked as unsolved
90 Views

URL scheme in Info.plist

I use the following entry in Info.plist to make the program handle the "tidal" url scheme, but it launches the program without the URL itself. The entry is: keyCFBundleURLTypes/key array dict keyCFBundleTypeRole/key stringViewer/string keyCFBundleURLName/key stringorg.strawberrymusicplayer.strawberry/string keyCFBundleURLSchemes/key array stringtidal/string /array /dict /array Full Info.plist here: https://github.com/strawberrymusicplayer/strawberry/blob/master/dist/macos/Info.plist.in The URL looks like this: tidal://login/auth With the url parameters that contains the authorization code, the total length is 692 characters. It works fine on Linux and Windows, but not on macOS. I've tested both with Safari and Firefox. Is the URL perhaps too long?
Asked
by jonaski.
Last updated .
Post marked as unsolved
59 Views

IOS Safari Error: XMLHttpRequest - Remains in Pending State

Where IOS safari IOS version - 14.4 Safari settings Prevent Cross Site Tracking - ON Block all cookies - OFF Problem Statement All requests to API host remain in Pending State until the page is reloaded. What is Pending State here? In safari devtools - Request is sent but response did not come back. However, the request does not go to server/network layer. Behavior pattern Random Hosts website (TOP) - www.example.com api - api.example.com (Requests go from top frame) Error We can see the following error from previous page context after reload, XMLHttpRequest cannot load url due to access control checks. No other error is in the console to specifically tell what happened. Note: we make parallel request to different endpoints of api.example.com Debug Charles Proxy Request to api.example.com is not sent to network layer. However, request to www.example.com can be seen in Charles Proxy and works fine. Clearing State None of the following worked localStorage.clear() sessionStorage.clear() clear all cookie from safari dev tools reload with disable cache (alt+cmd+r) Private Mode Private Mode at the same time works fine. Remove All Website Data Doing the following fixes the issue, Settings - Safari - Advanced - Website Data - Remove All Website Data However, it comes back after some time(/browsing). CNAME (simplified) nslookup www.example.com www.example.com canonical name = www.a.com www.a.com canonical name = www.example.com.edgekey.net. www.example.com.edgekey.net. canonical name = abc.x.edge.net Name: abc.x.edge.net Address: 24.75.214.150 nslookup api.example.com api.example.com canonical name = abc.x.edge.net Name: abc.x.edge.net Address: 24.75.214.150 Why talking about CNAME? Since disabling cache did not send the request to network layer, I am guessing the issue can have some relation with CNAME cloaking defense of Safari ITP or ITP overall. Please feel free to ask for more details. Does anyone has some idea why this issue can happen or how to fix it?
Asked
by Niladri.
Last updated .
Post marked as unsolved
641 Views

A MediaStreamTrack ended due to a capture failure

When doing a video call using webrtc and the connection is already made. my video will suddenly freeze and then will become black screen after a few seconds. Would anyone know how to fix this one? The title is the log I'm getting in the console. Browser: Safari OS: macOS Big Sur v11.0.1
Asked
by Tiii.
Last updated .
Post marked as unsolved
187 Views

Proxy set on IPv4 Split tunnel includedRoutes are not going via proxy

Hi, I have Split tunnel and Proxy configured in Network extension as below, I have three IPv4 Split tunnel addresses say as x.x.x.x, y.y.y.y and z.z.z.z set as includedRoutes in IPv4Settings on NEPacketTunnelNetworkSettings. I have configured Automatic proxy using NEProxySettings where proxy server is running at my-proxy.com:8080. My PAC file is written in such a way that when traffic matches the Split tunnel IPv4 address say as y.y.y.y (which is one of the includedRoutes) to go via proxy. Below are the observations made, Traffic matching these includedRoutes x.x.x.x, y.y.y.y and z.z.z.z are routed through the virtual interface used by the VPN tunnel (which is as expected). But IPv4 address y.y.y.y (which is inside the VPN Split tunnel) which was supposed to go via proxy is not actually going via proxy. So, How is Proxy set on Split tunnel rule expected to work? or How is traffic excepted to route when Proxy is set on one or many of the includedRoutes in NEPacketTunnelNetworkSettings? I am using Safari browser for accessing resources.
Asked
by BMDivya.
Last updated .
Post marked as unsolved
315 Views

Automatic proxy in NEProxySettings is bypassed when proxy server is down.

Hi, I am trying to configure either Manual or Automatic proxy in Network extension using NEProxySettings in NEPacketTunnelNetworkSettings. Below are my observations made when proxy is configured, Manual proxy When Proxy server is reachable: resources are accessible When Proxy server is not reachable: resources are inaccessible (expected behaviour). Automatic proxy either using javascript(proxyAutoConfigurationJavaScript) or URL(proxyAutoConfigurationURL) When Proxy server is reachable: resources are accessible When Proxy server is not reachable: proxy is bypassed and resources are accessible To check this behaviour, I tried configuring proxy in Wi-Fi Settings and when proxy server is down below are the observations made, Manual proxy: resources are inaccessible Automatic proxy: When PAC URL is reachable: resources are inaccessible When PAC URL is not reachable: resources are accessible Which is having different behaviour compared to Network extension’s proxy settings. How is Automatic proxy designed to work in NEProxySettings when proxy server is down? How can I get the same behaviour as Manual proxy(not bypassing proxy) in Automatic proxy when proxy server is down? I am using Safari browser for accessing resources.
Asked
by BMDivya.
Last updated .
Post marked as unsolved
135 Views

how to hide the address bar

how to hide the browser address bar and navigation bar in iphone? at least in safari and chrome. i tried to use :(timeout with scrollTo(0,1)) but it didn't work. and also the fullscreen api doesn't work on ios.
Asked
Last updated .
Post marked as unsolved
63 Views

WkWebView search url in textField and show in WKwebview

hello there. i am new to Xcode and app development. i been working on a simple web browser for getting started on the program but ran into a problem. i want to add a textfield were i can input a url or a a search term in the bar. but how would that work. would it be a "  @IBOutlet" with the text bar and then have it input as url in the wkwebview. here is the start of my code. import Cocoa import WebKit class ViewController: NSViewController {     @IBOutlet weak var webView: WKWebView!     let url = "-----"     override func viewDidLoad() {         super.viewDidLoad()         // Do any additional setup after loading the view.         let request = URLRequest(url: URL(string: url)!)         webView.load(request)     } }
Asked
Last updated .
Post marked as unsolved
61 Views

Change event triggers in safari when files property is updated dynamically

I am creating a custom uploader such that user can drag and drop files in to the custom drop area instead of uploader element. In order to achieve this, I need to update the files property of the Uploader by capturing the drop event. When doing so, change event is triggered for Safari browser alone and the same does not occur in the remaining browsers (Chrome, Edge and FireFox). Any help would be greatly appreciated. I also posted my query in Apple Forum. https://discussions.apple.com/thread/252642663
Asked
by Jeyanth.
Last updated .
Post marked as unsolved
373 Views

Big Sur - High CPU usage running video

I installed Big Sur the other day, I've had some major issues since installing, but I've managed to sort them out one by one, including the fact that it removed my admin account. Anyway, when I run a video in safari, be it a news Chanel or any other site, after a few minutes of watching the video, the CPU usage, jumps to 105% and the fan goes nuts. Then, after around 10-15 mins, the video will crash. I'm starting to wish I hadn't installed it! I'm running it on a 2019 MacBook Pro 15". I've tried clearing the cache and internet history, this works for a short while before the problem reemerges. What could be causing this issue?
Asked
by Je55ie.
Last updated .
Post marked as unsolved
30 Views

Disable context menu on my app when long pressed text body

I am trying to build an ebook reader app, need to disable context menu, so I can show my own customised context menu, please help I have been stuck on this issue of some time now
Asked
Last updated .
Post marked as unsolved
218 Views

Keep getting "35 - error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca" when trying to validate merchant using Apple Pay Web

TLDR: I can't pass merchant validation for some reason and think it might be either I have been struggling trying to make my Apple Pay application work for over a month now and have finally decided to ask for some help. Errors I get when building: curlError: "unable to set private key file: '/home2/mattmson/public_html/gwApplePayDev/certs/gwApplePay.key.pem' type PEM" Unhandled Promise Rejection: InvalidAccessError: The object does not support the operation or argument The errors I am getting from my curl_test.php file: cURL Error 35 - error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca Verbose information Trying 17.171.78.7:443... Connected to apple-pay-gateway.apple.com (17.171.78.7) port 443 (#0) ALPN, offering h2 ALPN, offering http/1.1 successfully set certificate verify locations: CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca Closing connection 0 Which leads me to believe it might be...a problem with the certs ( followed tutorial from https://github.com/norfolkmustard/ApplePayJS ) a problem with the file permissions on my server a problem with my cUrl attempts
Asked
Last updated .
Post marked as unsolved
113 Views

Identifier for Advertisers and New Privacy Implementation

Hello, We are a company that connects consumers to certain retailers. Each retailer has their own site. One of the retailers uses the Facebook Tracking Pixel for analytics. They sent us an updated implementation guide that points to the Facebook requirements. This in turn points to the Public Suffix List. I looked through the Public Suffix List's GitHub submission and they are pretty vehement against Facebook doing this. I'm not sure how this really affects us. We primarily use first-party cookies with the exception of our one retailer. I'm also not able to find any clear documentation or any clear place to ask this question, so any documentation or help would be greatly appreciated.
Asked
by pdarbee.
Last updated .
Post marked as unsolved
47 Views

Safari Webrtc Crash on iPhone

While developing a webapp on safari using WebRTC involving capture of images we see random crashes of the browser app leading to browser session refresh. We have confirmed that there are no memory leaks but still cannot explain why this situation happens. Crash/refresh seems to happen around the time we are trying to save the captured images from the camera and it happens at random times. Any help to debug this issue is much appreciated. Thanks
Asked
Last updated .
Post marked as solved
86 Views

Are there any workarounds for Wi-Fi Assist?

If our users have Wi-Fi Assist enabled on their devices (and it is enabled by default) our users have a hard time connecting their phones to our custom hardware product because our Wi-Fi base station doesn't have internet access. A key function of our product is dependent on our users connecting to our product's self-served Wi-Fi network and visiting the URL for our web app. With Wi-Fi Assist enabled, our web app cannot load as the user's device will try loading the URL over cellular rather than from our hardware. Are there any known workarounds to force an iOS device to load a URL over Wi-Fi even when connected to a Wi-Fi network without internet access?
Asked
Last updated .
Post marked as unsolved
116 Views

PWA FCM Push notification Issue

I have created a pwa application which is based on push notificaiton. i am able to get the push notification in android ,web browsers (in windows ,ubuntu,android ). but not able to get the notification in ios iphone devices . is anyone here help me to fix this issue .or we have to implement the custom notification using socket.
Asked
Last updated .