Push notifications with custom sounds and vibration when the screen is locked in Codename One

29 views
Skip to first unread message

David Jesus

unread,
Mar 29, 2016, 12:25:55 PM3/29/16
to CodenameOne Discussions

I tried to place a file under /native/android/res/raw/bellbox.wav and add the build hint android.pushSound = bellbox but this does not work. At the moment it is not playing any sound also, I tried modifying the vibration pattern with the build hint android.pushVibratePattern = 1000 and did not have any luck either.

Please help me, thanks.

Shai Almog

unread,
Mar 29, 2016, 10:57:53 PM3/29/16
to CodenameOne Discussions
Reply all
Reply to author
Forward
0 new messages