Search results for

file uri scheme

78,705 results found

Post

Replies

Boosts

Views

Activity

Swift URL with Custom Scheme in Query String Fails
I'm trying to call a URL using URLSession to log out of an oauth2 session in swift in an iOS app. The URL is something like this:Notice that some parameters are URL Encoded* https://xxxxxx.auth.us-east-1.amazoncognito.com/logout?client_id=49jaf4a848hakh&logout_uri=myapp%3A%2F%2F&redirect_uri=myapp%3A%2F%2F&response_type=token I get a run time error using this URL in a data task that says:* Error Domain=NSURLErrorDomain Code=-1002 unsupported URL UserInfo={NSUnderlyingError=0x60000202ccf0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 (null)}, NSErrorFailingURLStringKey=myapp://, NSErrorFailingURLKey=myapp://, NSLocalizedDescription=unsupported URL} I already have myapp in my info.plist.* <array> <dict> <key>CFBundleTypeRole</key> <string>Editor</string> <key>CFBundleURLName</key> <string>com.xxx.yyy</string> <key>CFBundleURLSchemes</key> <array> <string>myapp</string> </array> </dict> </array
5
0
5.6k
Aug ’20
Reply to How to pass data from Customer App to Admin App
I think the standard approach is a custom URL scheme if your data is short enough to fit in a URL (not sure what limits, if any, there are on the length). There's also the keychain with the same sort of limit - it's meant for small bits of info like passwords.I believe as of iOS 8 you can now have a shared app container so apps from the same developer can share data. One app could write a file and the other app could read it. That, in combination with the URL scheme, may be a more flexible approach.
Topic: Programming Languages SubTopic: General Tags:
Jun ’15
Reply to iOS 10 UIWebView not opening App scheme
Also seeing this on iOS10 final release and have filed bug rdar://28311471This seems like an undocumented functionality change with iOS 10.Workaround is to add Info.plist key LSApplicationQueriesSchemes as an Array, with item 0 being the URL scheme you want eg myappURL in your example, and any other items.Please file a bug too on bugreporter.apple.com!
Topic: UI Frameworks SubTopic: UIKit Tags:
Sep ’16
Reply to Filemanager won't remove file
No, your zipFiles array consists of a URL string (it has the file: scheme at the start of it), so it's not a file path.Whatever is producing your documentSTRINGS array is putting the wrong thing in that array.P.S. In general, do not use path-based APIs like removeItem(atPath:). Use URL-based APIs instead, such as removeItem(at:).
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’18
Confused between custom URL schemes and Universal linking and redirecting to the app store
I have a requirement to launch an app from another app (there is no requirement to launch the app from a website), and if its not installed then for the user to be redirected to the app store to download the app. The app already has a custom url scheme implemented, however the documentation and tutorials in this area are confusing and unclear. In order to launch the app, the custom url scheme will provide that, however, in order to get the redirection to the app store then firstly does the custom url scheme have to be replaced with universal links? Secondly, is it necessary to have a webpage that links to the app store? Is it possible to get this behaviour without having a website? Is it the case that Apple doesn't provide this functionality and developers have to have the hassle of hosting a website purely just for the sake of redirecting to the App Store?
1
0
991
Aug ’24
Reply to Lost connection to the debugger
In Xcode Version 15.0 beta 5 Create a file called LLDBInitFile in the SRCROOT folder (the folder containing the project) Add this line to the file: settings set plugin.process.gdb-remote.packet-timeout 300 Restart Xcode and try again In the Edit Scheme -> Run > Info Tab there is a field to locate the LLDBInitFile but is disabled.
Aug ’23
XCode 14 and XCode Cloud: issue creating a scheme
Hello, my name is David. I'm trying to test XCode Cloud with Version 14.0 beta (14A5228q) in a MacBookPro. I have an issue: as a developer with my Apple ID i have access to several companies and Apps (managed by me) in the Apple Store Connect. But when i try to do Product > XCode Cloud > Create workflow allways show the first company that i have access and cant switch to another one. Can you tell me if this is a known bug please? How can I create a Scheme but with the account/company/app that I want, please? Thank you very much and greetings.
1
0
1k
Jun ’22
Reply to Xcode randomly modifies my scheme content
I have this same issue with our Watch app schemes and have also submitted a feedback request (FB9832417) the resolution status has been updated to Potential fix identified - For a future OS update so hopefully we'll have a fix soon. Removing it from the repo doesn't work for us since it results in that scheme not showing up in the schemes drop-down. Using git update-index --skip-worktree doesn't work well on a large team since if everyone doesn't do it then it causes issues, and the docs for that command warn that it isn't meant for this type of use case. My latest workaround is to add a pre-commit hook that discards the changes to those scheme files before committing so that it doesn't show up in our pull requests at least. Still shows up in the local diff before committing which is annoying but it's the best i've been able to work out so far that doesn't depend on everyone aligning on the same behavior.
Apr ’22