I'm trying to schedule a Smart Alarm on a specified time, the scheduling works, and it fires, but I cannot cancel it once scheduled.Anyone tried it? Here is my code run = WKExtendedRuntimeSession() run.delegate = self var timerStartTime:TimeInterval = 60 run.start(at: Date(timeIntervalSinceNow: timerStartTime)) ...less than 60s later run.invalidate() ...console gives errorTest WatchKit Extension[51858:2541440] [sessions] encountered error Error Domain=CSLSSessionErrorDomain Code=3 "No record that <CSLSession: 0x7e8b1940; pid: 51858; dismissed: YES; duration: 1800.0; autoEnd: NO; launchable: NO; mutuallyExclusive: YES; managed: YES; persisted: NO; _cpuPercentage: 0.0; schedulable: YES; requiresFGActiveInitiation: YES; lastForeground: 2019-07-18 15:32:33 +0000> |CSLSSession = {| sessionID: 5CE52D42-F62E-4807-B0BD-631D623E94F6; bundleID: MC.Test.watchkitapp; type: scheduled; running: NO; expirationDate: 0x0; startDate: 2019-07-18 15:32:38 +0000; lastStartWasScheduled: NO;|} was started" UserInfo={NSLocalizedDescription=No record that <CSLSession: 0x7e8b1940; pid: 51858; dismissed: YES; duration: 1800.0; autoEnd: NO; launchable: NO; mutuallyExclusive: YES; managed: YES; persisted: NO; _cpuPercentage: 0.0; schedulable: YES; requiresFGActiveInitiation: YES; lastForeground: 2019-07-18 15:32:33 +0000> |CSLSSession = {| sessionID: 5CE52D42-F62E-4807-B0BD-631D623E94F6; bundleID: MC.Test.watchkitapp; type: scheduled; running: NO; expirationDate: 0x0; startDate: 2019-07-18 15:32:38 +0000; lastStartWasScheduled: NO;|} was started}
Post
Replies
Boosts
Views
Activity
This is regarding Extended Session's Smart Alarm Mode that allows scheduling. After scheduling a WKExtendedRuntimeSession into the future (1 min), then when I call invalidate() the delegate gives me a undecipherable error below:[30534:2413736] [sessions] encountered error Error Domain=CSLSSessionErrorDomain Code=3 "No record that <CSLSession: 0x85ba6790; pid: 30534; dismissed: YES; duration: 1800.0; autoEnd: NO; launchable: NO; mutuallyExclusive: YES; managed: YES; persisted: NO; _cpuPercentage: 0.0; schedulable: YES; requiresFGActiveInitiation: YES; lastForeground: 2019-07-25 21:36:14 +0000> |CSLSSession = {| sessionID: 760B5C6B-6C1A-40C2-AE56-882374262B71; bundleID: a.a.watchkitapp; type: scheduled; running: NO; expirationDate: 0x0; startDate: 2019-07-25 21:38:14 +0000; lastStartWasScheduled: NO;|} was started" UserInfo={NSLocalizedDescription=No record that <CSLSession: 0x85ba6790; pid: 30534; dismissed: YES; duration: 1800.0; autoEnd: NO; launchable: NO; mutuallyExclusive: YES; managed: YES; persisted: NO; _cpuPercentage: 0.0; schedulable: YES; requiresFGActiveInitiation: YES; lastForeground: 2019-07-25 21:36:14 +0000> |CSLSSession = {| sessionID: 760B5C6B-6C1A-40C2-AE56-882374262B71; bundleID: a.a.watchkitapp; type: scheduled; running: NO; expirationDate: 0x0; startDate: 2019-07-25 21:38:14 +0000; lastStartWasScheduled: NO;|} was started}Any idea how to properly cancel it? Or is this a Beta bug?
Hello it seems there was an unannounced API change to the Music API. Specifically the maximum offset has been limited to 75 from 1000 for all search terms as of Jan 19, 2023. It still worked yesterday.
https://api.music.apple.com/v1/catalog/US/search?offset=1000&types=playlists&term=pop &limit=25
This used to be able to get me much more results, but now it maxes out at offset=75.
Is there a reason why it was limited? Thanks.
Has anyone see this constantly show up, it comes 5-10 of times on every MusicKit request, although the requests gets proper responses, I'm not sure if this error is important or not?
[Default] <ICUserIdentityStoreACAccountBackend: 0x281f47660> Failed to register for account monitoring. err=Error Domain=com.apple.accounts Code=7 "(null)"
I've tried to play the same song on mac and iOS, in Mac the play count seem to update when I tap "info" of the song. But when I try to access it on iOS, even after playing the song on the same iOS device, the count and play date is always nil.
I've checked my MusicKit which = authorized.
Let me know if this is some thing iOS doesn't support