Can I download a sound file and use it to sound push notifications in iOS?

I want to upload a file and save it somewhere in my application, for example NSUserDefaults, and then play it using a push notification.

Is it possible? If so, where is the best place to store this audio file?

Any help is appreciated, thanks in advance

+4
source share
1 answer

Yes, you can do it, but it is not as much a “better place” as “only a place”: / Library / Sounds. Here is the relevant documentation.

In particular, these are:

( ), UILocalNotificationDefaultSoundName .

:

iOS , iOS, . "/" .

+2

Source: https://habr.com/ru/post/1620545/


All Articles