I use DeviceActivityCenter to monitor app usage.
For DeviceActivityEvent, I set 30 events, and the threshold of each event increases by 2 minutes:
var events: [DeviceActivityEvent.Name: DeviceActivityEvent] = [:]
for index in 0..<30 {
let threshold = (index == 29)
? DateComponents(hour: 1)
: DateComponents(minute: (index + 1) * 2)
let name = DeviceActivityEvent.Name("\(prefix)|\(index)")
events[name] = DeviceActivityEvent(applications: tokens, threshold: threshold)
}
After reaching the last DeviceActivityEvent, I will restart directly in DeviceActivityMonitor
private func restartMonitoring(activity: DeviceActivityName) {
let center = DeviceActivityCenter()
let currentEvents = center.events(for: activity)
do {
try center.startMonitoring(activity, during: schedule, events: currentEvents)
} catch {
print("Fail: \(error)")
}
}
But I found that after restarting, DeviceActivityEvent will be automatically executed even if I don't use the app.
My iOS version is 18.5
Apple Developers
RSS for tagThis 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.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi everyone,
It’s been almost three weeks, and I’m still waiting for a reply about my subscription to the Apple Developer Program, but I haven’t received anything. I replied to the email three days ago and got no response.
I tried again by requesting the subscription two days ago, but all I received was an automated message saying they would reply within two business days.
What I did exactly: I went to my Apple Developer account, clicked on Subscriptions, and entered my card details. They sent me an email saying they are preparing my order, but nothing else.
Has anyone else had the same issue with Apple Developer support?
Regards,
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
Topic:
Community
SubTopic:
Apple Developers
Hello Devs,
I wanted to bring this up to display the frustration that I have obtaining the CarPlay entitlements. First and foremost they don't give you a set timeline and there is no contact number to speak to someone about this. When you call developer support they go on and say it is a different department. There is an email but all I have received is an automated response back to me.
Has anyone received the navigation entitlements and if so what was the timeline of you receiving it?
My main app is CardView based w/programmatic navigation.. My secondary app is a nice EventListView w/programmatic navigation. Both are functional with no errors.
I want to add an event list to my CardView app but the appearance is all wrong. See image. The blue swirl at bottom is all of my List that appears.
I can post images of code, if needed.
My question is this - can I combine CardViews and ListViews?
Topic:
Community
SubTopic:
Apple Developers
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.
I am trying to connect to my openbsd server. The command works over local network (I am identified by public key) but fails over remote network.
I get the following error :
$ ssh -vvv sylvain @ saboua.xyz
OpenSSH_9.8p1, LibreSSL 3.3.6
...
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug3: channel_clear_timeouts: clearing
debug1: Connecting to saboua.xyz port 22.
ssh: connect to host saboua.xyz port 22: Operation timed out
A solution I gues would be to use brew's LibreSSL 4.0, but I cant find how to use it instead of the system LibreSSL.
Topic:
Community
SubTopic:
Apple Developers
Maybe a bit of a simplistic question, but….
Best ways to create music - programmatically - within an app?
I have a few small, simple games that I would like to add some background music to. I’ve fiddled with AVAudio, SKAudio, and now AudioKit. I’m just not quite finding the holy grail of music generation. I don’t know if it’s more technique or tool.
So I thought I’d hit up the pool of minds here for some suggestions…?
Basically, I always charge my phone at night to my limit 85%, but when I installed the iOS 18.3 beta 3, my iPhone charged to 100% at night when I was having always limit to 85%, my phone was overheated too. Did that only happened to me? Because I even checked and it’s on 85% limit.
Unable to select the desired build in App Store Connect; clicking on the build has no effect.
Steps to reproduce:
1.I select my app
2.I choose which build to add
3.I try to select the build
Expected result: I should be able to select the build
Actual result: Nothing happens
Browsers Tested: Google Chrome (both PC and mobile), safari mobile
Supporting Video: https://www.loom.com/share/cd9c831920fb43518ef461c9a697f09f?sid=9ce60f81-0a7c-44f4-b88a-74dcc9820e14, https://drive.google.com/file/d/1PJEixy8IpFTEEDLjBMQjV-b9U8zUM2S0/view?usp=sharing
Screenshots: https://gyazo.com/e390a5ddaa142ac9e5cbb2a6757abee8, https://gyazo.com/08ac242fbfd61d375766da04f7eb209c
Topic:
Community
SubTopic:
Apple Developers
I have implemented subscription renewals in my app and now want to integrate a referral system. Each user should receive a unique referral code that they can share with others. When a new user signs up using a referral code, both the referrer and the referred user should receive a bonus.
What is the best approach to implementing this feature efficiently?
Looking to start developing at Swift. What is the best way to get started with a job related to Swift development? Is there any specific demanded certification I could pursue?
Thank you.
calling this app store connect API returns 201 created but does not clear purchase history for sandbox account
create login_renamed_xx.keychain-db everytime restart
Hello,
I am currently developing an application for Apple TV using TVML, and I am trying to create a user registration or login form with multiple input fields (e.g., "Username" and "Password"). However, I am facing issues with displaying multiple textField components in the formTemplate.
Here are the approaches I have tried:
Attempt 1:
<document>
<formTemplate>
<banner>
<title>Login</title>
</banner>
<banner>
<textField>UserName</textField>
</banner>
<banner>
<textField>Password</textField>
</banner>
<footer>
<button id="button1">
<text>Button 1</text>
</button>
</footer>
</formTemplate>
</document>
Attemp 2:
<document>
<formTemplate>
<banner>
<title>Login</title>
</banner>
<textField>UserName</textField>
<textField>Password</textField>
<footer>
<button id="button1">
<text>Button 1</text>
</button>
</footer>
</formTemplate>
</document>
In both cases, the layout does not render the fields as expected. Either the textField components do not display at all, or the structure seems incorrect.
Could someone please guide me on the proper way to display multiple textField components in a formTemplate? Is there a limitation or specific requirement for structuring these elements?
Thank you in advance for your assistance!
Hello All,
I would like to nominate my app for the coveted position of a “featured app.” However, it appears that I would have had to submitted the app before it went live a few weeks ago.
Does anyone have any suggestions? Is there another form out there to fill out the app information for submission?
Thank you for any help!
Darien
Pilates Mastery™
Topic:
Community
SubTopic:
Apple Developers
My imessage has been acting up for 1 month now. It fails to activate my phone number and prefers my email. This is a beta issue Apple support has told me and it needs fixing asap.
Topic:
Community
SubTopic:
Apple Developers
Installed update on Monday night and since then keep losing Network connection despite resettting Network connections and iphone.
Comes back for a short time after rsetting then is lost with nothing showing under Mobile Service.
Topic:
Community
SubTopic:
Apple Developers
I have raised a support ticket regadring a concern I had with apple developer account. I got a respose via email, asking some more details. After that I have replied to the same mail thread with requested details. But I havent got any respose after that. I would like to is that the correct way of responding to support ticket ? Am I suppose to get the response for the same mail thread , after I reply ? or Every time I have open a new support tikcet ?
Topic:
Community
SubTopic:
Apple Developers
Currently running 15.5 Beta 3 on a Mac Studio M4. I am unable to read/write to my Home folder from most of my applications. I receive an error basically saying I do not have access rights to the file/folder. If I go to the file directly and open it, it works. I have repaired disk permissions, checked the Sharing & Permissions settings via Get Info, and finally called Apple. Of course, since I am running the beta, the support was quite limited. I will add that I am also unable to open .dmgs that have been downloaded to my Downloads folder. I receive the "The disk image couldn’t be opened. The operation couldn’t be completed. Operation not permitted" error. If I copy the .dmg to another drive, I can open it from there.
Topic:
Community
SubTopic:
Apple Developers