Vote count:
0
I hate to ask (and humbly wait for any answers) but I'm forced to since I couldn't dig any specific information regarding my issue anywhere on the web. Maybe I've simply asked bad way or maybe there is no such info provided/published.
To introduce my issue I will present what I would like to achieve, then what I've already found out on the web and then I would like you (anyone) to provide any sort of feedback to point me somewhere.
We have iOS application which is raising different types of alerts (alarm, info, etc.) We're already using PUSH notifications for that which works flawlessly. Anyway there is no way how to differentiate one type of another - it is just a PUSH - all are still the same. Since all PUSH messages configuration is done inside the application we would need to allow user to set the custom sound for specific notification types (around 4-5 types).
Now what I've learned so far
- Notification sounds needs to be bundled within the application
- Notification payload needs to specify sound file name in the body - application can't influence this
- Even we will try to input the system sound name, or name including its path, it is not played on a device (tested - hope we've tested it right way)
All above is so far okay, and we need to live with it but since we would like to use the system sounds available on iOS platform (iOS 7 and higher), not the custom ones, I would like to humbly ask you about following two questions
- Is it possible to include iOS/MacOS system files in my iOS application? (please support your possible "Yes, you can" with appropriate link to official license paper)
- If previous is not possible then - is there a way to extend Notifications configuration on iOS (in OS Settings) the way where we can include our 4-5 types of events and let user pick these sounds there? (for example as the native Email app notification settings has already)
- If both points above are not possible then - is there any other way you may know about to achieve our previous goal and let users pick the custom sound for 4-5 types of PUSH notifications ("types" in a manner of our application's alert types)
Please note we are aware it may be possible to use some sort of a hidden PUSH messages, process these messages on the background and then use e.g. http://ift.tt/1pVc06q for playing what we want to play but this is something we would like to avoid because (maybe you'll correct me if I'm wrong)
- if user will not run our application for some sort of time (14 days?) hidden PUSH notifications will stop to be processed by our application's code (iOS will not raise any intent to us in such case)
- playing system sound is not officially allowed and this may result in failure at AppStore certification process
Thank you all for any kind of feedback on this topic. Even in case you will not point me anywhere I'll learn something new.
Apple system sounds license to use as custom notification sounds in iOS application
Aucun commentaire:
Enregistrer un commentaire