Search results for

Visual Studio Maui IOS

105,728 results found

Post

Replies

Boosts

Views

Activity

How to detect or opt out of iOS app prewarming?
Hi, We are running into issues with iOS app prewarming, where the system launches our app before the user has entered their passcode. In our case, the app stores flags, counters, and session data in UserDefaults and the Keychain. During prewarm launches: UserDefaults only returns default values (nil, 0, false). We have no way of knowing whether this information is valid or just a placeholder caused by prewarming. Keychain items with kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly are inaccessible, which can lead to broken business logic (the app can assume no session exists). No special launch options or environment variables appear to be set. We can reproduce this 100% of the time by starting a Live Activity in the app before reboot. Here’s an example of the workaround we tried, following older recommendations: __attribute__((constructor)) static void ModuleInitializer(void) { char* isPrewarm = getenv(ActivePrewarm); if (isPrewarm != NULL && isPrewarm[0] == '1') { exit(0); // prevent prewar
1
0
114
3w
AlarmKit alarm UI strings are lost after updating OS
I have a working AlarmKit app, but I've noticed that after any iOS update (e.g. the 26.0.1 update from a few days ago), my scheduled alarms seem to lose their UI strings, so instead of the Stop button saying Stop, it says alarm_ui_stop_button (which is my localization key for the button text). If I delete the alarm and re-add it, then it works again... until the next software update. It seems like OS updates are interfering with the link between scheduled alarms and app localization strings, which I believe are dynamically looked up at alarm time (not at configuration time). I am settings the strings in the standard way like this: AlarmManager.AlarmConfiguration( schedule: .fixed(date), attributes: AlarmAttributes( presentation: AlarmPresentation( alert: AlarmPresentation.Alert( title: alarm_ui_title, stopButton: .init(text: alarm_ui_stop_button, textColor: .yellow, systemImageName: xmark) ) ), metadata: SDAlarmMetadata(title: title, subtitle: subtitle), tintColor: .yellow ), sound: .default ) Has an
3
0
106
3w
Embed/Do Not Embed & Mach-O type
My Xcode project has the following configuration: 1 iOS app target 1 Xcode framework target (mach-o-type Dynamic Library) 5 static libraries Dependencies: All the static libraries are target dependencies of the framework. The framework is the only target dependency of the iOS app. For the iOS app target, within the General tab > Frameworks, Libraries & Embedded content, I've set the framework as Do not embed So now I have a dynamic framework which won't be copied to the .app bundle in the build output. As per my understanding, this should result in a runtime error, dyld should not be able to find the framework files as they were not embedded in the final .app bundle. But regardless, my app runs without any errors, using all the methods exposed by the framework. What is the correct understanding here? What exactly does Embed/Do not embed mean (apart from excluding the files from .app bundle) When both settings are specified, is there any priority or precedence of one setting o
3
0
140
3w
Reply to Safe areas ignored after navigating a WebView/WebPage back in a NavigationStack
I filed a bug report (FB20465338) but I also want to note some more details here in case this is useful to someone: When navigating back/forward in a WebView or WKWebView, the page suddenly jumps up. The reason appears to be that WebKit automatically adds some padding to the top of the webpage to account for the unsafe nav bar area, but it then forgets to account for this padding when navigating back/forward. The effect is especially pronounced if you swipe back/forward. When swiping you see a static preview of the incoming page, but when you release the swipe, the page suddenly jumps up. As far as I can tell, this has always been an issue, but before iOS 26 it wasn't really a problem because the WebView would usually be flush against a solid nav bar. However, in iOS 26, this bug is problematic because Apple is asking us to flow the web content behind the nav bar; indeed, this is the default behavior of a WebView. There's effectively no good solution in iOS 26 because you basically
Topic: Safari & Web SubTopic: General Tags:
3w
Reply to Potential Structural Swift Concurrency Issue: unsafeForcedSync called from Swift Concurrent context
interferon, It’s better to reply as a reply, rather than in the comments; see Quinn’s Top Ten DevForums Tips for this and other titbits. You wrote: How much should I worry about this error? That depends on what the backtrace looks like. If the backtrace leads to your code, that’s something you should worry about. If the backtrace only shows system code, that makes this log noise, as defined here. [quote='860615022, pi80223, /thread/802423?answerId=860615022#860615022, /profile/pi80223'] I've seen this error message too when running a very simple SwiftUI app [/quote] I tried that here in my office and didn’t see the log. Specifically: Using Xcode 26.0.1 on macOS 15.6.1, I created a new project from the macOS > App target, choosing SwiftUI as the language. I ran that on my iOS 26.0 (23A341) test device (by a strange coincidence, it’s also an iPhone 16). I waited for 10 seconds. Then swiped up from bottom to send it to the background. And it’s a bummer I can’t reproduce it because I might be able to
3w
Reply to What is the memory limit for a network extension?
[quote='856112022, Evozi, /thread/73148?answerId=856112022#856112022, /profile/Evozi'] How about iOS 26? [/quote] AFAICT the limits are unchanged on iOS 26. If you’d like to see bigger limits, the best way to get that feedback in front of the folks who have the power to enact change is file it in Feedback Assistant. Make sure include details about what you’re trying to do and why the current limits are negatively affecting your users. Please post your bug number, just for the record. Also, keep in mind that iOS 26 runs on old devices which are significantly more memory constrained than the shiny new hardware you might be using. My daughter may one day have to give up her iPhone SE (2nd generation), and thus accepted the new reality of Face ID, but today is not that day (-: Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
3w
Reply to SSL certificate failure
[quote='860505022, jameseasylog, /thread/799838?answerId=860505022#860505022, /profile/jameseasylog'] I would guess this is because iOS 16 and earlier doesn't have Sectigo root certificates loaded [/quote] It’d be better to check rather than guess. Which brings me back to this comment: [quote='857543022, DTS Engineer, /thread/799838?answerId=857543022#857543022'] There’s a bunch of links … in Networking Resources. [/quote] Networking Resources include various links to the Apple Support articles that explain which root certificates are installed on which versions of iOS. I’m not able to speak for Sectigo, obviously, but a quick ’net search for Sectigo Public Server Authentication Root R46 suggests that they are in the process of transitioning from one root to another. If iOS 16 compatibility is important to you, I recommend that you discuss this with them. It’s possible that they might have some advice for how to tweak your server to be compatible. Share and Enjoy — Quinn “The Eskimo
3w
Reply to Custom USB Network Device Driver on iPhone
You don’t have a lot of options in this space. [quote='802640021, nam-common, /thread/802640, /profile/nam-common'] we have been informed DriverKit is only available on iPadOS, not iOS. [/quote] That’s correct. [quote='802640021, nam-common, /thread/802640, /profile/nam-common'] First being IOkit [/quote] macOS is the only platform that supports I/O Kit drivers [1]. [quote='802640021, nam-common, /thread/802640, /profile/nam-common'] the second being External Accessory Session (EASession). [/quote] There are two problems here: External Accessory framework can only talk to accessories that are built under the aegis of the MFi programme. If you have an existing accessory that wasn’t built that way, you can’t talk to it with EA. External Accessory framework allows apps to talk to hardware. It doesn’t let you publish a network driver that’s visible to the rest of the system. I think your best option here is to work with your chip vendor to update their firmware to work with iOS’s built-in USB Et
Topic: App & System Services SubTopic: Drivers Tags:
3w
IOS downgrade from 26 to 18
Hi developers, The iOS 18 has been unsigned since 09/23, which is much earlier than Apple usually does. In addition, the new features in IOS26 are tough to get used to; therefore, the sign for IOS18.7 is urgently needed by a large number of Apple users! Please see discussions on every social media across various languages.
0
0
51
3w
MDM Profile Installation Issue on iPhone 17 - Suspected Parameter Transmission Error
Issue Description: We are experiencing MDM profile installation failures specifically on iPhone 17 devices. After extensive testing and comparison between affected and working devices, we suspect this appears to be a parameter transmission error rather than device settings. Technical Analysis: Device Settings Comparison: No differences found between problematic and working devices in system settings, indicating this is not a configuration issue. Suspected Parameter Transmission Error: • Device model information appears to be restricted or blocked during profile download • User ID and phone number parameters are not being transmitted to the server • Installation logs show missing login ID and phone number entries Symptoms: • During MDM profile installation, the Apps & Restrictions section that should appear is missing • Profile download parameters are suspected to not be properly transmitted to the server • Installation process fails at the profile configuration stage Critical Finding: When we cloned a pre
0
0
393
3w
Reply to iOS 26 didRegisterForRemoteNotificationsWithDeviceToken is not being called
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { let deviceType = UIDevice.current.userInterfaceIdiom == .pad ? iPad : iPhone let tokenString = deviceToken.map { String(format: %02.2hhx, $0) }.joined() print(🎉 didRegisterForRemoteNotificationsWithDeviceToken CALLED on (deviceType)!) print(✅ APNs device token registered on (deviceType): (tokenString)) Messaging.messaging().apnsToken = deviceToken // Give Firebase a moment to process the APNs token DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { [weak self] in self?.fetchFCMToken(reason: apnsRegistered) } } This method is not being called. Tested device: Ipad Air - iOS 26.0(Simulator) also in real iPad. xcode 26.0.1
3w
Low-Latency HLS stream playback issue on iOS 26
We have a Low-Latency HLS stream, and on iOS 26, even though the bandwidth is sufficient, it still selects a low-bandwidth resolution (e.g., RESOLUTION=640x360) for playback instead of using a higher-bandwidth resolution (e.g., RESOLUTION=1920x1080) when using AVPlayerViewController with AVPlayer. This works fine on iOS version 18 and previous versions. What could be the solution to this issue?
0
0
90
3w