Open ShinasNajeerKoya opened 1 week ago
Does this help?
Hello Levi,
Yes, it helped me debug the issue.
I will be disabling the banner, and after doing so, it will remain at the top for 30 seconds, even if the user is actively using the phone. Instead of showing the banner, I will disable it to achieve this behavior.
Summary
I am encountering an issue with scheduled notifications using a custom audio file in an iOS application. The audio playback ceases prematurely when the notification popup moves to the background. This behavior is consistent across various app states: foreground, background, and terminated. The issue is not present on Android, where the custom audio plays as expected.
Details
Expected Behavior
The custom audio file (30 seconds in length, .aiff format) should play for its full duration, regardless of the app state, when a scheduled notification is triggered.
Observed Behavior
Environment
Platform: iOS
Custom Audio File Details : .aiff format, 30 seconds length.
Android Behavior : Functions as expected; the custom audio plays in full.
Steps Taken
Potential Cause
The issue might be related to limitations or missing configurations for background task execution or audio playback in iOS notifications.
Request for Assistance
Please confirm if additional permissions, configurations, or code adjustments are required to ensure the custom audio file continues playing in the background once the notification popup moves out of view. Any guidance or documentation references would be greatly appreciated.
Thank you for your assistance.