Search results for

file uri scheme

79,824 results found

Post

Replies

Boosts

Views

Activity

How to disable native Full Screen and implement custom "Zoom to Fill" with minimum window constraints in MacOs SwiftUI / Appkit
I am creating a macOs SwiftUI document based app, and I am struggling with the Window sizes and placements. Right now by default, a normal window has the minimize and full screen options which makes the whole window into full screen mode. However, I don't want to do this for my app. I want to only allow to fill the available width and height, i.e. exclude the status bar and doc when the user press the fill window mode, and also restrict to resize the window beyond a certain point ( which ideally to me is 1200 x 700 because I am developing on macbook air 13.3-inch in which it looks ideal, but resizing it below that makes the entire content inside messed up ). I want something like this below instead of the default full screen green When the user presses the button, it should position centered with perfect aspect ratio from my content ( or the one I want like 1200 x 700 ) and can be able to click again to fill the available width and height excluding the status bar and docs. Here is my entire @main code :- @mai
1
0
317
3d
Reply to Is there a way to prevent the app from coming to the foreground when accepting a call with a banner-type call kit in a VoIP app?
I'm developing a VoIP app. Currently, I'm using CallKit to control call acceptance and end-of-call processing. When a call comes in while using the phone, CallKit appears as a banner at the top of the screen. When I click Accept on the banner, the app opens and the call is received. (For OEMs, clicking the Accept button in the banner will accept the call as is.) Is there a way to prevent the app from coming to the foreground when accepting a call with a banner-type call kit in a VoIP app? No, not currently. When I click Accept on the banner, the app opens and the call is received. Yes. This has been how CallKit worked since the framework was introduced in iOS 10, where it inherited the existing iOS behavior. The call banner was introduced in iOS 14, but the behavior of CallKit app was not changed. I believe that decision was made to avoid disrupting existing apps since past experience had shown VoIP developers to be resistant to nearly any change. I'll also note that CallKit opening into the calling app was a
Topic: App & System Services SubTopic: General Tags:
3d
Reply to iOS 26: Unable to Transition from CallKit Screen to App when remoteHandle is nil or empty string
Have there been any other reports of similar behavior? Nope, not that I'm aware of. To be honest, this is the first time I've ever thought of passing an empty remoteHandle. It's entirely possible you're the first person who's ever tried this, and you're certainly the first person who's asked me about it. Should this be considered a bug in CallKit for iOS 26? Yes and no. That is, it certainly shouldn't be behaving the way you're seeing, but I'm also not sure it should allow remoteHandle to be empty at all. Should I make a new Feedback report? Yes, please file a bug on this and post the bug number back here. Having said that... Is there a suitable method to resolve this issue when the caller ID is unsolicited (nil or an empty string)? ...the actual answer here is that remoteHandle should never be empty. What your app should put there depends on the reason the value is empty/unknown, but remoteHandle is the primary mechanism your app uses to tell the user about the call you're reporting. In that context
Topic: App & System Services SubTopic: General Tags:
3d
Tips from App Review
Here are some tips from App Review for a smooth review experience. We’ve split them into two categories: Before You Submit and After You Submit. We’ve also made an easy-to-follow Submission Guide you can save and reference at any point on your App Store journey. Before You Submit Tips Enable a complete review. Make sure you’ve provided demo accounts or implemented an account demonstration mode before you submit. We’ll need to review the entire app experience, both with and without an account. Provide up-to-date demo account login credentials in the App Review Information section on the app version page in App Store Connect. If your app has multiple account types (such as admin and general users), use the Notes field to provide additional demo account credentials for each account type. If your app requires an authentication code in addition to the login credentials, provide the code in advance in the Notes field. Otherwise, a call may be required to complete the review. Apps that handle sensitive user informat
0
0
571
3d
Reply to CSIdentityQueryExecute - possible results access after release?
I.e. crash occurs on OD-related queue while another thread fetches users’ data via CSIdentityQueryExecute(). It seems that the query is in progress because the thread waits for a semaphore. Yes, that's true. However, looking at our code, there's no way that could be disrupting the other thread, as it only blocks in dispatch_semaphore_wait once (waiting for the entire query to complete) and doesn't do anything until the query finishes. Regarding the feedback, I think we'll file a report soon. Please do and upload full crash logs, posting the number back here once you've got everything uploaded. I'd like to look at a set of full logs to see if I can see anything. Also, do you have any crash logs without asan? And do they look the same? It's not unusual for asan to shift crash behavior (basically, you end up crashing earlier than you normally would) and it can also mask the real crash cause in your app. __ Kevin Elliott DTS Engineer, CoreOS/Hardware
3d
Reply to Home App Intermittent Hub Not Responding Bug
Network set-up is an ISP router with AmpliFi router. K-MTG- what router are you using and, in particular, is it Ubiquiti hardware as well? Note that I'm only looking for correlations, not assigning responsibility. My own home WiFi network is actually a slightly absurd Unifi installation (I probably don't need 4 APs and a rack-mounted router) and many other Apple engineers use their products. In any case, thanks for the bugs; however, in both cases, the engineering team is going to need more data, as these issues tend to be caused by the interactions among multiple controllers, not the specific device that's actually having an issue. At a minimum, that means a sysdiagnose from both the device showing the issue and the home hub, but they'd love sysdiagnose files from all of the devices. A few notes on that process: Ideally, the device would have the HomeKit profile installed as well, but that's not essential. The logs you collect need to all cover the same time window (the time you reproduced/experienc
Topic: App & System Services SubTopic: General Tags:
3d
Reply to App Startup with Debugger in Xcode 26 is slow
While I appreciate the movement in the right direction, this still represents a substantial regression from the prior baseline, ~1s in Xcode 16. Hi LWK, I would appreciate it if you could run an experiment to help us understand where the last bits of performance regression are. Open ~/.lldbinit and add this line: settings set target.experimental.swift-tasks-plugin-enabled false It might be best to do this while Xcode is closed, so that we can be sure the setting is read correctly. (You can confirm the setting worked by looking at the thread navigator while stopped in some async function, if you have any in the code, you should no longer see any threads called Tasks). With this setting, do you still experience a slow launch? (please remember to remove that setting, as keeping it on will make stepping through async functions stop working) If you could also open a terminal, run sample lldb-rpc-server 60 --wait -file sample.txt, and then immediately launch your application, this would be very helpful as
3d
Reply to How to help Instrument's Swift task task lifetime summary group the same tasks so that the count for tasks is not always 1.
Hi CalebAKA, This view is breaking down these statistics per unique task. If you expand the Swift Task column you should see that these names have the task id as the suffix. However, adding an additional layer of grouping by developer provided task names seems reasonable. I would encourage you to file a feedback report using the feedback assistant.
3d
Reply to Multiple Apple Pay relationships with differing apple-developer-merchantid-domain-association files
This doesn't answer the question unfortunately. The docs still say the merchant needs to host an apple-developer-merchantid-domain-association. Well we already have an existing file from a different apple pay implementation that we need to keep in place, but we need to add a 2nd one. Is replacing the other one with the new one a valid solution? Or will it disrupt our other apple pay implementation from our first provider?
3d
Reply to Degraded RoomPlan performance
Hey @eliotwjohnson, These types of issues are difficult to track down without additional logging. To keep track of this with our engineering teams I'd greatly appreciate it if you could open a bug report, including whatever assets you have that help illustrate the issues, and post the FB number here once you do. Bug Reporting: How and Why? has tips on creating your bug report. Is the following based off what you've heard or do you have videos and files that show the behavior? overlay is jittery and crooked, and the resulting scan file has significant issues Do you have any logging in place that is capturing any RoomCaptureSession.CaptureError errors in production? It seems like another developer was able to improve performance by resolving a memory leak. Have you profiled the application when performing multiple scans in a row? I found it happened consistently for us when we had a memory leak, and was able to be reconciled by really profiling the app, and making sure all memory is freed befo
Topic: Spatial Computing SubTopic: General Tags:
3d
Reply to Implementing Foveated Streaming with Apple Vision Pro
Hey @John-Doe, There's no supported way for you to track where the user is looking with the APIs currently available. The system performs foveated rendering in a way to preserve privacy and doesn’t provide direct information about where people are looking. If you'd like us to consider adding foveated streaming, please file an enhancement request using Feedback Assistant. Once you file the request, please post the FB number here. If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why? Thanks! Michael
Topic: Spatial Computing SubTopic: General Tags:
3d
iOS App detecting external USB mass storage connection without user interaction
Title iOS App detecting external USB mass storage connection without user interaction Background We are developing an iOS application that connects to an action camera device via Bluetooth and Wi-Fi for control and data transfer. In addition to wireless connectivity, our product requirements include supporting USB Mass Storage mode, where the camera (or a generic USB flash drive) is connected to an iPhone using a Lightning / USB-C adapter and appears in the Files app as an external drive. Requirement Our app needs to detect when an external USB mass storage device is connected or disconnected, with the following constraints: The app is already running in the foreground No user interaction is performed (no button tap, no document picker, no import UI) The USB device can be: A generic USB flash drive An empty USB drive (no photos or videos) The app only needs to know: Whether an external USB storage device has been connected or removed No need to access device identity, vendor info, or low-level USB de
1
0
39
3d
Drag and Drop multiple files to Finder in macOS SwiftUI Catalyst
I am trying to port my sandboxed macOS app completely over to iOS using a Catalyst target and SwiftUI. There appears to be an issue when trying to drag to the Finder in Catalyst (and in SwiftUI in General). For some reason, the Finder will not accept multiple file drops, only a single file. On my macOS (non-Catalyst AppKit target), I overcame this by dropping multiple files to a UTType of .folder, and the OS accepted the folder. This workaround is not available for iOS because .folder is a macOS-only option. I have a test app to illustrate the issue. Hopefully someone can help. Download Test App
0
0
26
3d