I've folow this tutorial : IBM Worklight 5.0.5 - Play custom sound on push notification
but get an error:
I've folow this tutorial : IBM Worklight 5.0.5 - Play custom sound on push notification
but get an error:
The problem is that you placed the raw
folder in the wrong location.
It should be INSIDE the res
folder.
If you don't have a nativeResources folder in your project, just make sure to create a raw
-named folder in the native\res
folder and place the sound file there.
Just as FYI:
Edited the adapter's *-impl.js file with:
WL.Server.notifyAllDevices(userSubscription, { badge: 1, sound: "alarma.wav", activateButtonLabel: "ClickMe", alert: notificationText, payload: { foo : 'bar' } });
Placed alarama.was in the nativeResources's raw
folder