Apple Developers

RSS for tag

This is a dedicated space for developers to connect, share ideas, collaborate, and ask questions. Introduce yourself, network with other developers, and foster a supportive community.

Learn More

Posts under Apple Developers subtopic

Post

Replies

Boosts

Views

Activity

App Latest version from the App Store
i am using this code public static bool CheckForForceUpdate() { try { Version latestVersion = new(GetLatestVersion()); Version currentVersion = new(AppInfo.VersionString); if (latestVersion != null && currentVersion < latestVersion) { NSUserDefaults.StandardUserDefaults.SetBool(true, StorageKey.IsForceUpdate); return true; } else { NSUserDefaults.StandardUserDefaults.SetBool(false, StorageKey.IsForceUpdate); return false; } } catch (Exception ex) { Console.WriteLine("CheckForForceUpdate....." + ex.Message); return false; } } public static string GetLatestVersion() { try { string appId = "1586153397"; // Replace with your App Store app ID string url = $"https://itunes.apple.com/lookup?id={appId}"; using (HttpClient client = new HttpClient()) { var response = client.GetStringAsync(url).GetAwaiter().GetResult(); var json = JObject.Parse(response); var latestVersion = json["results"]?[0]?["version"]?.ToString(); return latestVersion; } } catch (Exception ex) { Console.WriteLine("GetLatestVersion..." + ex.Message); return null; } } The value of latestVersion should 2.1 in my production app i am not able to get this hence i am not able to achieve Force Update functionality
0
0
62
Apr ’25
iPad Pro M4. Panic. Freezing and Restarting Daily Without Heavy Usage
I purchased an iPad Pro M4 in early December, and since day one, I’ve been experiencing a recurring issue. Almost every day, at random times, the device freezes for 1–5 minutes and then restarts itself. The tablet is not under heavy load when this happens — I mainly use it for light tasks such as watching videos in a player or Safari browser, web surfing, and reading books. The issue has even occurred while the iPad was idle and locked; it froze, displayed the Apple logo, and rebooted. I brought the device back to the store where I purchased it, and they sent it for a diagnostic check. However, the experts concluded that the device is fully functional, and no defects were found. After one of these crashes, I noticed that my Apple Pencil started lagging (see video file IMG_5688.MOV). However, after another reboot, the issue with the Apple Pencil resolved itself. I’ve documented the issue with several video recordings showing the freezing and rebooting behavior, as well as error logs generated after such incidents. Device Details: Model: iPad Pro M4 Usage: Light tasks only (video streaming, web browsing, reading) Environment: No overheating, no resource-heavy applications running What could be causing this issue, and how can I resolve it? Any help would be greatly appreciated. Thank you! P.S. I’ve uploaded all the device logs and videos demonstrating the issue to Google Drive. https://drive.google.com/drive/folders/1_R0i_iazADWo5EgStrPdgmf1XjgPP_RC?usp=sharing
0
0
460
Jan ’25
Issue Wifi Calling - with 5G and LTE - iOS Beta 18.4. 3rd beta and before
when I receive calls on my mobile number and I am connected to a Wifi, the calls is cancelled after the second ring and the caller receives a busy signal. That means I cannot receive calls anymore. This problems happens with different mobile providers and does not occur on my Samsung Galaxy Phone with the same number (eSim). Even when I disable WIFI Calling the problem persists, when I am connected to a WIFI. Only when I disable the WIFI Connect and I am only connected to the mobile carrier, the calls go throuhg in a normal way. VERY annoying and hast not been fixed with Beta 3 of iOS 18.4. Any clue how this can be solved with settings? Hope Apple fixes this very soon!
0
0
399
Mar ’25
Adding segments/splits into workout
Hello, I am building a workout app that has an option to add segments to differentiate different stages of the training session. Segments are added the following way: func saveSegment(eventType: HKWorkoutEventType, startDate: Date, endDate: Date, inSeg: Int) async throws { let dateInterval = DateInterval(start: startDate, end: endDate) let event = HKWorkoutEvent(type: eventType, dateInterval: dateInterval, metadata: metadata) try await builder?.addWorkoutEvents([event]) } Inside Health -> Workouts -> Show All Data, the segments appear, but in Fitness app there are no segments. The workout is .paddleSports. I thought that maybe the workout type was the problem, but when I start the sessions from the native workout app, segments are added and shown in the Fitness app: In other posts I saw suggested to add an event as .marker instead of .segment, but the result is the same, it does not appear. Is there something I am doing wrong? How can I show the segments into the Fitness app? Another question, I would like to add stroke rate and stroke count to my paddling session, is there a way to add it? Paddle Sports workout was recently introduced and it would be great to have the option to add those values. Thank you in advance. Inaki
0
1
799
Jan ’25
no internet connection
after updating to beta 4 the whole phone is not working anymore nothing is working only making calls and the camera no apps no internet even if it's connected to wifi or 5G ANd to get back to the old version you will lose your backup And now im stuck my data that i can't restore it cuz it have been made on the last IOS beta I don't want to lose my date and i don't know what to do Please help
0
1
237
Mar ’25
IOS 26.
Good day. Friends, please help. I installed iOS 26 Betta version. During the update, there was a power surge and the Internet went out. The download was difficult but it went through. Now I can't check for updates. Write connection error and checking for updates. I can't roll back to 18.5. It gives an error through the computer. Please help. Thank you in advance.
0
0
95
Jun ’25
How to detect if an iPad is configured as a Shared iPad (Apple School Manager)?
I'm working on an iOS/iPadOS app and need to determine programmatically whether the device is a Shared iPad as configured through Apple School Manager (ASM). Shared iPads allow multiple users to sign in with Managed Apple IDs and are typically used in educational environments. I want to identify this configuration at runtime within my app. I’ve looked into UIDevice, NSProcessInfo, and MDM-related APIs but haven't found a reliable way to detect whether the current device is a Shared iPad. Is there an API or method to check if the current iPad is configured as a Shared iPad (via ASM)? Any guidance or code examples would be appreciated.
0
0
59
Jun ’25
[Apple Pay]how to update multiTokenContexts when PKPaymentRequestShippingContactUpdate method trigger
multiTokenContexts is defined as follows (https://developer.apple.com/documentation/passkit/pkpaymentrequest/multitokencontexts) You can assign a value when initializing PKPaymentRequest (https://developer.apple.com/documentation/passkit/pkpaymentrequest). However, in actual usage scenarios, when the Apple Pay address changes and PKPaymentRequestShippingContactUpdate (https://developer.apple.com/documentation/passkit/pkpaymentrequestshippingcontactupdate) is triggered, how to update multiTokenContexts? The documentation and code do not provide updates for this parameter. In contrast, Apple Pay on the Web provides newMultiTokenContexts as an update when ApplePayShippingContactUpdate (https://developer.apple.com/documentation/apple_pay_on_the_web/applepayshippingcontactupdate) is triggered. Has anyone encountered this problem? Would you happen to have any solutions? Thank you.
0
0
430
Jan ’25
In rare VoIP calls, B can’t hear A, but A can hear B — audio input issue on iOS?
Hi everyone, We’re seeing a rare but frustrating issue in our iOS VoIP app and would appreciate any advice. What’s happening: In some VoIP calls between two users (let’s say A and B), B can’t hear A’s voice, but A can still hear B just fine. It doesn’t happen often, but once it does, the issue persists until the device is restarted. Users who experience this issue typically have other voice or conferencing apps installed and actively use them. They report that when our app runs into this problem, those other apps continue to work normally. ⸻ What we’ve ruled out: • AVAudioSession has microphone permission, and audio input works under normal conditions • Network conditions are stable • App-side logic seems solid — the issue occurs extremely rarely (e.g., 1 out of several thousand calls), making it unlikely to be caused by a consistent bug in our call flow ⸻ What we’ve tried to fix it (all ineffective): Restarting the call — no effect Force-quitting and relaunching the app — no effect Toggling Bluetooth: disconnecting and reconnecting audio route, or switching back to built-in mic — no effect Replugging wired headphones or switching to the default iPhone audio input — no effect ⸻ What actually works (so far): • Restarting the device — this is the only action that reliably fixes the issue ⸻ What we’re looking for help with: 1. Does this sound like an iOS-level AVAudioSession routing or audio stack issue? 2. Is there any way to recover from this state without rebooting the device — either through iOS system settings or programmatically? 3. Are there any known audio routing or input bugs in iOS that match this behavior? Thanks in advance — any suggestions or pointers would be greatly appreciated!
0
0
49
Jun ’25
Developer Program Billing
Hi, I did get the renew invoice in email but there was an additional charge the same day / time for $6.19 from Apple , seems like it is related but cannot find any invoice in email or anything other than a charge line on the credit card. Does anyone have any idea what this additional charge might be? Still waiting to hear back from Apple.
0
0
239
Jan ’25
Pilot Comms/headsets
Based a quick research, comfort and fit, noise cancellation issues and durability seems to be the most consistent issues with pilot headsets. I wouldn’t say there is a problem here, because you can easily throw out the faulty headset and spend another $1000 on a new one. However, what if apple can profit by introducing their version of pilot headsets? Besides, most airlines use Apple iPads for Navigation, crew scheduling etc. Make it a one stop shop. Apple already has the framework for music headsets, why not use it as a base for pilot headsets? Disrupt an already stagnant market and give pilots a great alternative. Tap into the interests of a new generation of pilots again most which already uses Apple products. Come up with a new fresh look of ‘pilot comms.’ A good idea is to pitch to the GA (general aviation) industry maybe include Apple headsets with the purchase of a new aircraft.
0
0
65
Jun ’25
TestFlight No Email Invite
I have been working on telecommunication testing of ALE Softwar. Since no invite email received, I can’t unable to test in my IPhone. there is no options to add my test app. this that app url https://apps.apple.com/in/app/ale-softphone/id1588713865
0
0
57
Jun ’25
How can I create a shortcut to toggle macro control in iPhone settings?
I’d like to create a button on my iPhone Home Screen that changes settings if I am using an external lens mounted to my phone. This is what I have along with notes on what I hope to do. But it does not work. I am only able to open either the camera settings or the camera preserve settings but nothing will toggle macro controls. There is an additional step within the camera app as well but it can be skipped for brevity. Name: Telephoto and macro lenses Check if macro settings are already enabled or not. (Settings > Camera > Macro Control toggle) as well as (Settings > Camera > Preserve Settings > Macro Control toggle) Non-working shortcut code: Verification question: "Are you using an external lens?" If yes, Notification: "Turning on Macro Control and preserve settings for macro control." (Run below immediately) prefs:root=CAMERA&path=Turn%20On%20Macro_Control And prefs:root=CAMERA&path=CameraPreserveSettingsSwitch&path=Turn%20On%20Macro_Control If no, Notification: "Turning off Macro Control and Preserve Settings for macro control." (Run below immediately) prefs:root=CAMERA&path=Turn%20Off%20Macro_Control And prefs:root=CAMERA&path=CameraPreserveSettingsSwitch&path=Turn%20Off%20Macro_Control
0
0
91
May ’25
Issue getting back only a subset of product IDs for purchase controller
As of today we seem to continuously get back 21 of the product IDs we have defined when the shop initializes. This is causing what looks like intermittent bug behavior in our shop. The IDs sent each time are random (not always the same 21). So sometimes they match shop offers and the packs look right and can be bought and sometimes the ones our current shop offers need are not sent and so the offers in game look wrong and error when you try to buy. Is anyone else seeing this new behavior of not getting down all their product IDs successfully?
0
1
94
May ’25