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

Clearing an app’s memory, data etc.
My app works perfectly the first time it is used but when returning to the start after playing the game and playing another it does some random things. I figure it is because the app still retains the previous game in it’s memory allocation? My question is, what is the best way programmatically to have an app start fresh and not have to quit it and open it again?
6
0
274
May ’25
How to Properly Integrate Google IMA SDK for Pre-roll, Mid-roll, and Post-roll Ads in a tvOS App using TVJS and Swift?
I'm working on a tvOS application that plays video content using TVMLKit/TVJS. I'm trying to integrate Google IMA SDK to show pre-roll, mid-roll, and post-roll ads in my app. Here’s what I’ve done so far: Video playback is handled through JavaScript in application.js. Ads are managed in Swift using Google IMA SDK. I use the evaluateJavaScript bridge to control video playback from Swift. I pause and resume the TVJS player (Player object) using a function like startPlayingVideo(value) from Swift based on the ad lifecycle. Current Flow: When the video is about to start, I call loadAds() from JS. This presents a Swift ViewController that handles IMA ad requests. On adsManagerDidRequestContentPause, I pause the video using JS via the bridge. On adsManagerDidRequestContentResume, I resume the video. The Issue: This setup doesn't behave consistently: Sometimes the ad plays in the background and video started playing as well but can not see the ad. Not able to see the post-roll ads Relevant Code Snippets: application.js function startPlayingVideo(value) { if (playerReference != undefined) { if (value == true) { playerReference.play(); else { playerReference.pause(); } } } function playVideo(videoURL) { setup playerReference, push mediaItem, etc. loadAds(); player.present(); } AppDelegate.swift let loadAds: @convention(block) () -\> Void = { DispatchQueue.main.async { let adManagerVC = ViewController() AppDelegate.tvController?.navigationController.present(adManagerVC, animated: true) } } let updateVideoPlayTime: @convention(block) (Double) -\> Void = { time in CustomContentPlayhead.shared.currentTime = TimeInterval(time) } ViewController.swift func adsManagerDidRequestContentPause(\_ adsManager: IMAAdsManager) { showAdUI() playerViewController.player?.pause() } func adsManagerDidRequestContentResume(\_ adsManager: IMAAdsManager) { hideAdUI() // Expecting JS video to resume via bridge } And yeah my IMSDK Implementation is working fine if I am using it with swift AVPlayer. What I Need Help With: Best practice for coordinating video playback between JS (Player) and Swift (IMAAdsManager). How can I sync the playhead reliably between JS and Swift? Is there a better way to pause/resume TVJS player from Swift during ad lifecycle? How to reliably insert mid-roll ads when the playback is primarily controlled in JS? Any insights, code examples, or recommended architecture improvements would be greatly appreciated!
0
0
159
Jun ’25
IOS 26 - Lock Iphone during install on "low battery" page
Hi! Just downloaded the IOS 26 beta software to my Iphone 15 128gb and during the second phase of installation of the update (when the phone start rebooting a few time) my iphone showed the display of low battery with the time displayed on the top left corner of the screen, even though my Iphone was pluged in during the full time of the install and had more than 50% of battery before launching the installation. So far-here is what i know: I wouldn't be able to confirm if the install was successfull or not i tried forced reboot a few time but i keep landing on the low battery page some other people are experiencing the same problem as i am as i could confirm on the reddit dedicated to the IOS26beta page
34
23
5.4k
Jun ’25
Terrible treatment by Apple Dev support team
I paid for my developer account on the 13th of June 2024 (1 week ago). My ID was approved. However, I still don't have access to the account. When I go to check the status of it, it is asking me to pay again. I then tried to email the team, however only received useless, timewasting responses, such as "Please go to developer.apple.com/enroll to enroll for an apple dev account", which I already told them prompts me to pay again and verify my ID again. I then tried to call them, and they said they had to re-verify my ID and would call me back in 10 mins, but I never received a call back. I also couldn't call them again because it wouldn't let me request another call from them. I then emailed them, but still haven't received a response. The next day I tried to request another call from them, during their opening hours at Thursday 4pm AEST, (they are open Mon-Fri 9am-5pm AEST see https://developer.apple.com/support/worldwide-telephone-hours/) however it still says that "Phone support is currently unavailable". I tried to email them but now I am getting no responses at all. I tried to contact the apple support through the iMessage chat, however I was only put on call with a lady who was helpful, but couldn't even do anything as she was only generic support. She couldn't even schedule me a call or transfer me to the developer team, even though it was within their working and calling/support hours. I have tried to refund my developer account, but apparently that purchase is "illegible for a refund". This is the treatment I get from apple for paying $100 USD. An entire week of being left on blank. I don't know what to do. I paid 100 bucks for an account which I can't even use, and the support hasn't helped me for an entire week. My emails being left on blank, and I can't even call them. If anyone from apple or anyone that could help me sees this, please contact me ASAP at makrypodisc@ hotmail.com or reply to this thread. Thank you.
3
1
1k
May ’25
Battery stuck at 1%
I just downloaded ios 26 atm i was upgrading my phone battery was 50% and charging , now when i fully installated ios 26 it shows battery 1% and even i try to charge it still stays at 1% any idea how to fix it
2
0
180
Jun ’25
WWDC26 beta cellular issues
So recently, last week, ive updated to the Dev Beta of ios 26. This began the very issue of my cellular data. I woke up to a warning symbol where my cellular bars should be, telling me there was something wrong with my antenna or carrier when in reality there was no problem with any of those problems and took up about 53% of my storage. This is absolutely insane and unacceptable.
0
0
128
Jun ’25
Stuck in assistive access
i have installed the ios 26 developer beta on iphone se2 and i was testing on my phone then i got stuck on assistive access and i am not able return from there i have tried rebooting then nothing is happening there i see the some option when i pressed and hold power button and volume down for few second there is the option to exit but when i tap on it it freeze for few second it land on the lock screen of that assistive access
1
0
107
Jun ’25
New to Apple Developer Forums — Guidance Appreciated
Hi everyone 👋, I’m new to the Apple Developer Forums and just getting started with building apps for iOS/macOS. I’ve explored the documentation but wanted to introduce myself and ask for some advice from experienced developers. Currently working on: An iOS app using SwiftUI Learning more about integrating Sign in with Apple Exploring best practices for App Store submission Here’s what I’d like to know: What is the recommended approach to saving minimal app state before termination? Are there SwiftUI lifecycle metho18336114753ds or SceneDelegate hooks I should be aware of? Is UserDefaults the best tool for small state preservation in this context? Would love to hear from anyone who’s implemented sim18336114753ilar behavior — even a high-level suggestion would help. Thanks! Harjeet Singh
1
0
365
Jun ’25
Selling your first app
How long was it between putting your first app on the App Store (that had a paid component to it like IAPs) and getting your first sale? I'm working on an app at the moment that I plan on putting up for a small one time fee. I'm curious to know what people's different experiences were with this. What was your app and how did it go?
0
0
104
Jun ’25
AR WorldMap Relocalization for Identical houses.
i have a specific requirement as below. i have apartments in which i have 4 units and each unit will be of same layout. furniture etc.. might change but not walls and layout as far as i know. Step1: Now i will enter into one unit, scan the entire unit and save it using RoomPlan Api and at the end of the scan i will be saving the worldmap as well. Step2: i want to use the previously saved worldmap and enter into another unit and want to relocalize with only walls because the furniture might be different. is that possible. if not is there any otherway to achieve this functionality? i really appreciate you valuable time. Thankyou.
5
0
323
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
284
Jun ’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
123
Jun ’25
Some questions about custom email domain names with iCloud+ Mail
In the actual development, I found that I could not complete the setting of my icloud+ customised email domain name SMTP. I tried to configure the SMTP of iCloud custom email according to Apple's document (https://support.apple.com/en-us/102525) but the error I looked through Apple's support file, but I didn't find the specific configuration of iCloud + customised email SMTP.
0
0
175
May ’25
CSV or TSV file in Numbers app
Hi Everybody knows about how this kind of files works. My issue is about trying to load data from these files to a HTML page. Everything works, I can read and use this data on my project however the records I have in Numbers, text where there are commas for punctuation, will be separated when this file is loaded. The comma is breaking the records, I know this is a CSV file but is there a way to set semicolon as delimiter on Mac or Numbers to be able to use the comma in my records without any issue? Also could be another symbol, but definitely I need the commas. thank you!
0
0
145
Jun ’25
Update to IOS 26
Today I updated to iOS 26 and after changing to clear mode nothing happens, the icons remain a solid color, everything remains a solid color, nothing is transparent.
0
0
123
Jun ’25
BLE advertisement
Dear Apple: After upgrading to version 26 of the iPhone, when broadcasting using the local name, the iPhone 15 Pro Max was truncated to iPhone 15 Pro Ma with a type of 08 (shortened), but the overall length of the broadcast did not exceed 31 bytes
1
0
107
Jun ’25
Clearing an app’s memory, data etc.
My app works perfectly the first time it is used but when returning to the start after playing the game and playing another it does some random things. I figure it is because the app still retains the previous game in it’s memory allocation? My question is, what is the best way programmatically to have an app start fresh and not have to quit it and open it again?
Replies
6
Boosts
0
Views
274
Activity
May ’25
How to Properly Integrate Google IMA SDK for Pre-roll, Mid-roll, and Post-roll Ads in a tvOS App using TVJS and Swift?
I'm working on a tvOS application that plays video content using TVMLKit/TVJS. I'm trying to integrate Google IMA SDK to show pre-roll, mid-roll, and post-roll ads in my app. Here’s what I’ve done so far: Video playback is handled through JavaScript in application.js. Ads are managed in Swift using Google IMA SDK. I use the evaluateJavaScript bridge to control video playback from Swift. I pause and resume the TVJS player (Player object) using a function like startPlayingVideo(value) from Swift based on the ad lifecycle. Current Flow: When the video is about to start, I call loadAds() from JS. This presents a Swift ViewController that handles IMA ad requests. On adsManagerDidRequestContentPause, I pause the video using JS via the bridge. On adsManagerDidRequestContentResume, I resume the video. The Issue: This setup doesn't behave consistently: Sometimes the ad plays in the background and video started playing as well but can not see the ad. Not able to see the post-roll ads Relevant Code Snippets: application.js function startPlayingVideo(value) { if (playerReference != undefined) { if (value == true) { playerReference.play(); else { playerReference.pause(); } } } function playVideo(videoURL) { setup playerReference, push mediaItem, etc. loadAds(); player.present(); } AppDelegate.swift let loadAds: @convention(block) () -\> Void = { DispatchQueue.main.async { let adManagerVC = ViewController() AppDelegate.tvController?.navigationController.present(adManagerVC, animated: true) } } let updateVideoPlayTime: @convention(block) (Double) -\> Void = { time in CustomContentPlayhead.shared.currentTime = TimeInterval(time) } ViewController.swift func adsManagerDidRequestContentPause(\_ adsManager: IMAAdsManager) { showAdUI() playerViewController.player?.pause() } func adsManagerDidRequestContentResume(\_ adsManager: IMAAdsManager) { hideAdUI() // Expecting JS video to resume via bridge } And yeah my IMSDK Implementation is working fine if I am using it with swift AVPlayer. What I Need Help With: Best practice for coordinating video playback between JS (Player) and Swift (IMAAdsManager). How can I sync the playhead reliably between JS and Swift? Is there a better way to pause/resume TVJS player from Swift during ad lifecycle? How to reliably insert mid-roll ads when the playback is primarily controlled in JS? Any insights, code examples, or recommended architecture improvements would be greatly appreciated!
Replies
0
Boosts
0
Views
159
Activity
Jun ’25
IOS 26 - Lock Iphone during install on "low battery" page
Hi! Just downloaded the IOS 26 beta software to my Iphone 15 128gb and during the second phase of installation of the update (when the phone start rebooting a few time) my iphone showed the display of low battery with the time displayed on the top left corner of the screen, even though my Iphone was pluged in during the full time of the install and had more than 50% of battery before launching the installation. So far-here is what i know: I wouldn't be able to confirm if the install was successfull or not i tried forced reboot a few time but i keep landing on the low battery page some other people are experiencing the same problem as i am as i could confirm on the reddit dedicated to the IOS26beta page
Replies
34
Boosts
23
Views
5.4k
Activity
Jun ’25
Console.app keeps jumping back to the top when Now mode enabled
Issue in now mode in console Reproduce steps: open /private/var/log/com.apple.xpc.launchd/launchd.log in console app click now to enable it wait for system to write some to the log. instead of tailling log, it comes to the start of log. I have filed a bug 3 months back FB16849784 it is not resolved yet.
Replies
3
Boosts
0
Views
299
Activity
Feb ’26
Terrible treatment by Apple Dev support team
I paid for my developer account on the 13th of June 2024 (1 week ago). My ID was approved. However, I still don't have access to the account. When I go to check the status of it, it is asking me to pay again. I then tried to email the team, however only received useless, timewasting responses, such as "Please go to developer.apple.com/enroll to enroll for an apple dev account", which I already told them prompts me to pay again and verify my ID again. I then tried to call them, and they said they had to re-verify my ID and would call me back in 10 mins, but I never received a call back. I also couldn't call them again because it wouldn't let me request another call from them. I then emailed them, but still haven't received a response. The next day I tried to request another call from them, during their opening hours at Thursday 4pm AEST, (they are open Mon-Fri 9am-5pm AEST see https://developer.apple.com/support/worldwide-telephone-hours/) however it still says that "Phone support is currently unavailable". I tried to email them but now I am getting no responses at all. I tried to contact the apple support through the iMessage chat, however I was only put on call with a lady who was helpful, but couldn't even do anything as she was only generic support. She couldn't even schedule me a call or transfer me to the developer team, even though it was within their working and calling/support hours. I have tried to refund my developer account, but apparently that purchase is "illegible for a refund". This is the treatment I get from apple for paying $100 USD. An entire week of being left on blank. I don't know what to do. I paid 100 bucks for an account which I can't even use, and the support hasn't helped me for an entire week. My emails being left on blank, and I can't even call them. If anyone from apple or anyone that could help me sees this, please contact me ASAP at makrypodisc@ hotmail.com or reply to this thread. Thank you.
Replies
3
Boosts
1
Views
1k
Activity
May ’25
macOS Tahoe Beta no internet or file sharing
I just installed macOS Tahoe beta on a mac mini. It says I am not connected to the internet, and attempts to use file sharing fail. Network status says that Ethernet and WiFi are working. Any suggestions?
Replies
2
Boosts
1
Views
286
Activity
Jul ’25
Battery stuck at 1%
I just downloaded ios 26 atm i was upgrading my phone battery was 50% and charging , now when i fully installated ios 26 it shows battery 1% and even i try to charge it still stays at 1% any idea how to fix it
Replies
2
Boosts
0
Views
180
Activity
Jun ’25
WWDC26 beta cellular issues
So recently, last week, ive updated to the Dev Beta of ios 26. This began the very issue of my cellular data. I woke up to a warning symbol where my cellular bars should be, telling me there was something wrong with my antenna or carrier when in reality there was no problem with any of those problems and took up about 53% of my storage. This is absolutely insane and unacceptable.
Replies
0
Boosts
0
Views
128
Activity
Jun ’25
CarPlay push notification support
Does CarPlay driving tasks entitlement support push notifications on CarPlay? If no, can Critical Alerts entitlement help in this case?
Replies
1
Boosts
0
Views
102
Activity
May ’25
Stuck in assistive access
i have installed the ios 26 developer beta on iphone se2 and i was testing on my phone then i got stuck on assistive access and i am not able return from there i have tried rebooting then nothing is happening there i see the some option when i pressed and hold power button and volume down for few second there is the option to exit but when i tap on it it freeze for few second it land on the lock screen of that assistive access
Replies
1
Boosts
0
Views
107
Activity
Jun ’25
New to Apple Developer Forums — Guidance Appreciated
Hi everyone 👋, I’m new to the Apple Developer Forums and just getting started with building apps for iOS/macOS. I’ve explored the documentation but wanted to introduce myself and ask for some advice from experienced developers. Currently working on: An iOS app using SwiftUI Learning more about integrating Sign in with Apple Exploring best practices for App Store submission Here’s what I’d like to know: What is the recommended approach to saving minimal app state before termination? Are there SwiftUI lifecycle metho18336114753ds or SceneDelegate hooks I should be aware of? Is UserDefaults the best tool for small state preservation in this context? Would love to hear from anyone who’s implemented sim18336114753ilar behavior — even a high-level suggestion would help. Thanks! Harjeet Singh
Replies
1
Boosts
0
Views
365
Activity
Jun ’25
Selling your first app
How long was it between putting your first app on the App Store (that had a paid component to it like IAPs) and getting your first sale? I'm working on an app at the moment that I plan on putting up for a small one time fee. I'm curious to know what people's different experiences were with this. What was your app and how did it go?
Replies
0
Boosts
0
Views
104
Activity
Jun ’25
AR WorldMap Relocalization for Identical houses.
i have a specific requirement as below. i have apartments in which i have 4 units and each unit will be of same layout. furniture etc.. might change but not walls and layout as far as i know. Step1: Now i will enter into one unit, scan the entire unit and save it using RoomPlan Api and at the end of the scan i will be saving the worldmap as well. Step2: i want to use the previously saved worldmap and enter into another unit and want to relocalize with only walls because the furniture might be different. is that possible. if not is there any otherway to achieve this functionality? i really appreciate you valuable time. Thankyou.
Replies
5
Boosts
0
Views
323
Activity
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.
Replies
0
Boosts
0
Views
284
Activity
Jun ’25
Slide-Over completely removed or just bugged?
I'm currently trying the traditional mode on the latest beta and the slide-over and the traditional splitview is not available, I would like to ask if it's completely removed or just a minor bug because my automation app rely heavily on this old two feature
Replies
1
Boosts
0
Views
90
Activity
Jun ’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.
Replies
0
Boosts
0
Views
123
Activity
Jun ’25
Some questions about custom email domain names with iCloud+ Mail
In the actual development, I found that I could not complete the setting of my icloud+ customised email domain name SMTP. I tried to configure the SMTP of iCloud custom email according to Apple's document (https://support.apple.com/en-us/102525) but the error I looked through Apple's support file, but I didn't find the specific configuration of iCloud + customised email SMTP.
Replies
0
Boosts
0
Views
175
Activity
May ’25
CSV or TSV file in Numbers app
Hi Everybody knows about how this kind of files works. My issue is about trying to load data from these files to a HTML page. Everything works, I can read and use this data on my project however the records I have in Numbers, text where there are commas for punctuation, will be separated when this file is loaded. The comma is breaking the records, I know this is a CSV file but is there a way to set semicolon as delimiter on Mac or Numbers to be able to use the comma in my records without any issue? Also could be another symbol, but definitely I need the commas. thank you!
Replies
0
Boosts
0
Views
145
Activity
Jun ’25
Update to IOS 26
Today I updated to iOS 26 and after changing to clear mode nothing happens, the icons remain a solid color, everything remains a solid color, nothing is transparent.
Replies
0
Boosts
0
Views
123
Activity
Jun ’25
BLE advertisement
Dear Apple: After upgrading to version 26 of the iPhone, when broadcasting using the local name, the iPhone 15 Pro Max was truncated to iPhone 15 Pro Ma with a type of 08 (shortened), but the overall length of the broadcast did not exceed 31 bytes
Replies
1
Boosts
0
Views
107
Activity
Jun ’25