Post

Replies

Boosts

Views

Activity

Apple Music API Changes
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.
1
1
800
Jan ’23
Cancelling a WKExtendedRuntimeSession doesn't seem to work
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?
0
0
479
Jul ’19
Cannot invalidate a scheduled WKExtendedRuntimeSession
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}
0
0
587
Jul ’19