Search results for

file uri scheme

79,839 results found

Post

Replies

Boosts

Views

Activity

Referer not being sent by WKWebView when using a custom scheme
YouTube now requires a Referer to be sent to be able to embed Youtube videos, otherwise the videos won't work. But WKWebView doesn't send a Referer when using a custom scheme, so Youtube videos stopped working in that case. This affects Ionic apps, both using Cordova or Capacitor. There's an open issue for Cordova and another one for Capacitor. In these apps, the app is served using a custom scheme like capacitor://localhost or ionic://localhost. I tried modifying the Ionic WebView source code to force adding a referrer to the URL loaded using WKWebView's loadRequest: [request addValue:@https://my.test.app forHTTPHeaderField:@Referer]; [_engineWebView loadRequest:request] But the Referer is still not sent in the Requests, I guess because the app is using a custom scheme (e.g. capacitor://localhost). However, if I modify this code to force loading an online URL (using https) instead of capacitor://localhost, then the my.test.app Referer is sent to the requests. Is there any way to ma
Topic: Safari & Web SubTopic: General Tags:
0
0
139
Nov ’25
Reply to How to Alter Audio tracks of default AvPlayer
#EXT-X-MEDIA:NAME=eng-300,TYPE=AUDIO,LANGUAGE=eng”,GROUP-ID=audio,CODECS=mp4a.40.2,DEFAULT=YES,AUTOSELECT=YES,URI=300/2043 #EXT-X-MEDIA:NAME=eng-500,TYPE=AUDIO,LANGUAGE=eng”,GROUP-ID=audio,CODECS=mp4a.40.2,DEFAULT=NO,AUTOSELECT=YES,URI=500 These are Audio Streams are coming from Manifest Currently Player Showing like English,English so causing issue and for localisation also an issue from apple
Topic: App & System Services SubTopic: Core OS Tags:
Dec ’22
Reply to The customized GPX file for Xcode 16 cannot be selected.
Hi guys. I still haven't solved this gpx issue completely. But I have found a temporary solution. First, I tried hablo's solution that mentioned above. And I could add custom gpx file when I ran my app. At this time, I can also add a new scheme or edit a scheme. I could change default location in Options menu. So, I changed default location to my custom gpx file. And then I rebooted my Mac. When I excuted my xcode file, I couldn't add my custom gpx file also. The default location I changed hadn't my custom gpx file on the list. But, I could change GPS when I ran my app. I can't write my mention fluently. But I want to share this solution for you guys who don't want to reboot every time for a custom gpx. Thank you. :)
Jul ’25
(Expansion) Sheet isn't complying to color scheme
So...I lost most of the Lunch Card files to a factory reset. There was an issue with Disk Utility - it's a whole thing. But I've managed to recover most of the files. But there's something that isn't working anymore within the code. In SettingsView, where the color scheme (Appearance) picker is located, you choose between light, dark, and system default. But when calling the sheet for AddView in CardsView (using SheetInfo() from Info.swift), it just defaults to whatever the system is set at. When I previewed it, it was light mode when the app setting was dark. Thing is, before I lost all my files, it worked perfectly normal, and consumer versions reflected that. I recovered (and rewrote some of) SettingsView and AddView (thank goodness I showed the full code for AddView here). I may have missed something, so here's my code for both, plus ContentView, CardsView, and Info.swift. SettingsView.swift - https://developer.apple.com/forums/content/attachment/91ff1182-42d3-48b8-9f8d
0
0
726
Feb ’21
Reply to WebKit PushStateFilePathRestriction
This is due to a change in WebKit (https://github.com/WebKit/WebKit/commit/78a55cf3976ce0b4543df42b03c335c5b89d27dd) to match the HTML spec with regards to pushState and file: URLs: https://html.spec.whatwg.org/multipage/history.html#can-have-its-url-rewritten If targetURL's scheme is file, and targetURL and documentURL differ in their path component, then return false. (Differences in query and fragment are allowed for file: URLs.) So it's fine to use pushState with file: URLs to go from index.html to index.html#/dashboard, but it is not allowed to go from index.html to index.html/dashboard. Maybe your framework has an option to use hash-based URLs for routing? The other alternative would be to use a custom scheme to serve your content instead of file: URLs.
Topic: Safari & Web SubTopic: General Tags:
May ’23
Reply to How to operate a image file
a URL can point at a local file (the scheme is 'file', so such URLs begin file://). For example, if you use NSOpenPanel on macOS to enable the user to select the file(s) to open, you'll get an array of URLs from the panel. See https://developer.apple.com/documentation/appkit/nsopenpanel. NSImage supports jpeg format input.
Topic: Programming Languages SubTopic: Swift Tags:
May ’23
Select Icon according to scheme in xcode 13
Hi guys, I'm a flutter developer on BTG Pactual digital. I was working in a solution to make our app as white-label. In this process, I had to make it select an icon set according to the selected scheme. Searching for a solution, all tips were speaking about Asset Catalog App Icon Set Name on Build Settings, which apparently isn't available on xcode > 13 anymore. After reading the Xcode 13's release notes I think that the Primary Icon Set Name is like this previous one. But, it wasted a lot of my time, because the icon preview isn't gotten according to the icon setted on this new variable. Take a look at this sample: As you can see, the icon preview is equal for all of them, but both the EqiAppIcon and NectonAppIcon has different icon images. Have I forgot some thing?
1
0
876
Jan ’22
iOS Simulators List - Naming Scheme
Hi everyone, I had a quick question regarding how the devices are named under iOS Simulators. Typically, I expect the naming scheme to look like:iPad 2 (9.0)iPad 2 (9.2)iPad Air (9.0)iPad Air (9.2)iPad Air 2 (9.0)iPad Air 2 (9.0)And so on, and then when it gets to iPhone:iPhone 4s (9.0)iPhone 4s (9.2)iPhone 5 (9.0)iPhone 5 (9.2)And so on. But what I'm seeing is the device type and then the device ID, so it looks like:iPhone 4s (3b1a......)iPhone 4s (5d3e......)I was wondering what would cause this. Is it a setting I can change ? Or is this happening because both devices are running the same iOS version so it does this to differentiate ? I ask because it doesn't seem to happen on my MacBook Pro but it is happening on my iMac. I tried reinstaling both Xcode and the simuators but this issue persists.
5
0
8.2k
Dec ’15
Custom URL Scheme no working on Safari - Monterey
Hi. In Monterey beta 5 (the same was observed in previous betas) our application is not launched from Safari browser. The Bundle URL is properly registered in Info.plist (this is working OK in previous OS versions and also it is working ok in Monterey using other browser) The custom URL is registered in this way CFBundleURLTypes CFBundleTypeRole Editor CFBundleURLName NNNN CFBundleURLSchemes NNNN NNNN represents out custom url scheme I didn't find any reference about some change on this API on Monterey (https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app) Thanks
2
0
1.9k
Aug ’21
Reply to DocC documentation warnings as errors
Xcode has an Other DocC Flags build setting—for additional flags to pass to DocC—that you can specify either in the build settings of your Xcode project or on the command line (as OTHER_DOCC_FLAGS). On the command line you can either override a build setting by directly specifying it as a key-value pair: xcodebuild docbuild -scheme NameOfYourScheme -destination 'platform=macOS' OTHER_DOCC_FLAGS='--warnings-as-errors' or you can specify any number of build settings in an xcconfig file and pass that file for the -xcconfig command line option: # create a 'xcconfig' file echo OTHER_DOCC_FLAGS = --warnings-as-errors > MyBuildSettings.xcconfig # pass it to xcodebuild xcodebuild docbuild -scheme NameOfYourScheme -destination 'platform=macOS' -xcconfig MyBuildSettings.xcconfig
Mar ’25
Maps URL Scheme
I have reviewed this document: https://developer.apple.com/library/content/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html.It says:To perform a search, supply a properly encoded URL string as the value of the q parameter. For example:http://maps.apple.com/?q=Mexican+RestaurantHowever, I'm wondering if there are certain keywords that I can enter for the q parameter. What I'm trying to do is display the user's home address. I was hoping that if I ended the URL with ?q=Home it would accomplish what I want, but it just pulls up a Home Depot from another state.Does anyone know of a way to accomplish this? I'm working on the premise that the user has selected their contact card under My Info in the Contacts app, that they have programmed their home address into the contact, and that Maps is able to read that (if I manually type in Home into the search field in Maps, it does suggest my home address as a result).
0
0
3.8k
Sep ’17
Reply to AVAssetDownloadTask and playback, m3u8 has remote URLs
A little more information....I downloaded the container from my app on to my computer and looked inside. In the m3u8 file that's saved into the movpkg bundle, the segments are always preceeded by a key, like this:#EXT-X-KEY:METHOD=AES-128,URI=https://myKeyURL.com/keypath,IV=0x00000000000000000000000000000000#EXTINF:4.0960,https://mySegmentURL.com/slices/segment1.tsAlso... the frag files from apple's sample app... if I change the extension to .ts, they play fine in QuickTime. But the frag files from my video do not. So my current theory is that when in airplane mode, it's trying to reach the key at the remote server to decrypt the segment, and of course it's unreachable when offline.Any ideas?
May ’20