-
Notifications
You must be signed in to change notification settings - Fork 1.9k
IOS custom push sound when app is in background #175
Comments
I can't get it to work. alarm.caf works when app is in the forground only. When the app is in the background, all I get is the standard beep. |
It has something to do with what IOS thinks my root folder is and what cordova thinks my root folder is. The following works when I store alarm.caf in the www folder: (works when app is in forground but not when app is in background)
This change below makes it work when the app is in the background but not when it is in the forground:
|
@tmakaro Yeah, iOS assumes that the sound file is in root folder of your app. Using:
Should work in both background and foreground. |
@macdonst Yes it does. Thank you! |
This thread has been automatically locked. |
Is having a custom push sound when app is in the background still a problem with this new plugin? The old plugin was never able to do it. The only way I have been able to do it is with a pure objective c program.
The text was updated successfully, but these errors were encountered: