You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For android 26+ setting sound doesn't work anymore. We need to create a channel on android.
So, this code not gonna work on newer versions of android. $notification->setSound('police.wav');
this will $notification->setSound('police.wav'); //old versions of android and ios $notification->setJsonKey('android_channel_id', 'noti_push_app_1'); //new android
Maybe, we could have something like $notification->setSound('police.wav', 'noti_push_app_1' /*this part not been required*/);
or $notification->setChannelId('noti_push_app_1');
The text was updated successfully, but these errors were encountered:
@steks89 thanks for the new version.
I can receive the notification with my channel id but i don't have the sound.
I think that the device can not find the audio file.
What is your plugin.xml config ?
For android 26+ setting sound doesn't work anymore. We need to create a channel on android.
So, this code not gonna work on newer versions of android.
$notification->setSound('police.wav');
this will
$notification->setSound('police.wav'); //old versions of android and ios $notification->setJsonKey('android_channel_id', 'noti_push_app_1'); //new android
Maybe, we could have something like
$notification->setSound('police.wav', 'noti_push_app_1' /*this part not been required*/);
or
$notification->setChannelId('noti_push_app_1');
The text was updated successfully, but these errors were encountered: