开发者

using a UILocalNotification to play a sound that's not in the app bundle

开发者 https://www.devze.com 2023-02-03 06:41 出处:网络
Is it possible to use a UILocalNotification (or any outside notification/long-term multitasking) to play a sound outside an app that\'s NOT in the main application bundle? Documentation for UILocalNot

Is it possible to use a UILocalNotification (or any outside notification/long-term multitasking) to play a sound outside an app that's NOT in the main application bundle? Documentation for UILocalNotification says the soundName attribute must be the name of a file in the main bundle. I threw together a quick app that confirms this.

Is there a way to get around this restriction? I was thinking some开发者_如何学JAVAthing with aliases, where the alias is in the app bundle and points to a known path in the Documents folder... but I guess the Documents folder isn't exactly known.

Any ideas?


Not in a sandboxed environment, its not possible.

0

精彩评论

暂无评论...
验证码 换一张
取 消