What is the actual maximum duration in seconds for a custom sound played when a notification arrives in Android?
In iOS the limit is officially at 30 s for custom sounds.
What is the actual maximum duration in seconds for a custom sound played when a notification arrives in Android?
In iOS the limit is officially at 30 s for custom sounds.
I did some tests on Android Smartphones and Tablets:
To me it seems to be very much dependent on the producer how the notifications get handled. On some older android phones I also didn't find the possibility to set individual sounds per app.
We added a process in our app that gets called by the notification to play a sound for an alarm - this way it's a little bit more consistent. Right now the process gets killed after a max of 30 seconds - so thats the maximum playtime in this scenario. We also required a longer notification sound in iOs but we didn't find a possibility yet.
It's a pain in the arm just to trigger a simple but important alarm in 2022...