You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve encountered an issue with ShazamKit in my iOS app on iOS 18. The app uses ShazamKit in the background to constantly identify songs and then proceeds to update a Live Activity with information of the latest recognized song. However, when running the app on iOS 18, I’ve observed the following behavior:
When running the app from Xcode, ShazamKit works as expected in the background, on both Debug and Release Configurations).
When running the app without being attached to Xcode (via TestFlight, App Store, or a debug build) on iOS 18, ShazamKit stops identifying songs after a certain period in the background.
The microphone indicator remains on, suggesting the app still has microphone access.
When bringing the app to the foreground, it immediately starts identifying songs again.
If the app remains in the foreground, it continues to identify songs without issues.
Importantly, this issue only occurs on iOS 18. The same app works fine on iOS 17 and earlier versions, continuing to identify songs in the background as expected.
Steps to Reproduce:
Create an iOS app using ShazamKit with background audio capability.
Implement a SHManagedSession to identify songs continuously.
Set up a Live Activity to display the identified song.
Run the app on a device with iOS 18 without attaching to Xcode (e.g., TestFlight or App Store version).
Start the song identification process and send the app to the background.
Play music near the device for a few seconds (~30 seconds)
Observe that after some time, new songs are no longer identified until the app is brought to the foreground.
Repeat the process on a device with iOS 17 or earlier to confirm the issue does not occur.
Expected Behavior:
ShazamKit should continue to identify songs in the background indefinitely on iOS 18, as it does on iOS 17 and earlier, as long as the app has the necessary background capabilities and permissions.
Actual Behavior:
On iOS 18, ShazamKit stops identifying new songs after a period of time in the background, despite the app still having microphone access. This does not occur on iOS 17 or earlier versions.
Description
I’ve encountered an issue with ShazamKit in my iOS app on iOS 18. The app uses ShazamKit in the background to constantly identify songs and then proceeds to update a Live Activity with information of the latest recognized song. However, when running the app on iOS 18, I’ve observed the following behavior:
Steps to Reproduce:
Expected Behavior:
ShazamKit should continue to identify songs in the background indefinitely on iOS 18, as it does on iOS 17 and earlier, as long as the app has the necessary background capabilities and permissions.
Actual Behavior:
On iOS 18, ShazamKit stops identifying new songs after a period of time in the background, despite the app still having microphone access. This does not occur on iOS 17 or earlier versions.
Files
ShazamKitBackground demo project on Github
The text was updated successfully, but these errors were encountered: