I'm looking for the way to play custom sound while push notification is received on iOS device. I know that on iOS sound file should be embeded into application bundle. But what I want to achieve is playing sound which is available on remote server. Unfortunately sounds database for my app is to big to bundle it all to the app.
I know it's not that straightforward but I have a few ideas in my head:
- Playing sound like Endomondo, while it's tracking our workout. But I'm guessing that it's connected with some background tasks for location (GPS) signal.
- Playing sound like i.e. Spotify does. After device receives notification just play music in audio player via streaming.
- Download music file into local storage and play it like it would be attached to application bundle. But is it possible to update application bundle in that way (remotely)?
Does any of my ideas is right way? Or it's totally sure that on iOS we cannot play remote sound with push notification?