I'm currently using the following to create a notification with the default sound but would now like to use a custom sound. Is it possible?
B4X:
Dim ln As NativeObject
ln = ln.Initialize("UNMutableNotificationContent").RunMethod("new", Null)
Dim n As NativeObject
ln.SetField("sound", n.Initialize("UNNotificationSound").RunMethod("defaultSound", Null))
As update and completion of https://www.b4x.com/android/forum/threads/background-location-tracking.50246/page-4#post-684135 I'll like to play a custom sound on notification so i made a little change based on https://www.b4x.com/android/forum/t...e-for-local-or-scheduled-notifications.54940/...
Public Sub CreateNotificationWithContent(Title As String, subTitle As String, Body As String, ImageURL As String, Identifier As String, Category As String, MillisecondsFromNow As Long) Dim ln As NativeObject ln = ln.Initialize("UNMutableNotificationContent").RunMethod("new", Null)...