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
{{ message }}
This repository was archived by the owner on Feb 7, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 7, 2019. It is now read-only.
Notification uses default sound instead of custom on Android 8 Oreo #204
Build the app and deploy to Android 8 Oreo device.
Send push notification to device with the following payload:
{
to : 'token',
data : {
message : 'message',
},
notification : {
title : 'title',
body : 'message',
icon : 'icon_notify', // defined in App_Resources
sound : 'notify', // defined in App_Resources
},
}
On older versions the custom sound is played, on Oreo default sound is used instead.
Well this is a nuisance, I've spent ages trying to figure this one out. Does anyone have any examples of how to create a notification channel on Oreo through NativeScript (JS)?
Hi @vforv, have you tried to implement your push notifications using the nativescript-plugin-firebase? It is more up-to-date with some features and could help you implement what you need. Also, we are in the process of moving features from push-plugin to nativescript-plugin-firebase, so this might be your best strategy long-term.
Activity
NickIliev commentedon Mar 30, 2018
@ickata I think this is closely related to this PR is . You can test this case after the PR is merged into
master.ickata commentedon Mar 30, 2018
OK, will do, despite the fact that the PR states that it fixes issue with the icon, not the sound...
NickIliev commentedon Mar 30, 2018
@ickata the issue was related to the used version of the G9oogle Services library and the fix updates that dependency.
ickata commentedon Apr 9, 2018
Hi, I updated the plugin to latest version (1.1.3). I'm still reproducing the issue.
thematan commentedon Apr 26, 2018
In order to play custom sound in Oreo, one should create a push "Category" (also called channel). the OS made significant changes
ickata commentedon Apr 26, 2018
@thematan : can you please give some details (example perhaps)?
thematan commentedon Apr 26, 2018
https://developer.android.com/guide/topics/ui/notifiers/notifications#ManageChannels
https://developer.android.com/training/notify-user/channels
AndrewBNZ commentedon Jun 6, 2018
Well this is a nuisance, I've spent ages trying to figure this one out. Does anyone have any examples of how to create a notification channel on Oreo through NativeScript (JS)?
vforv commentedon Aug 17, 2018
Anyone found solution for this? For me it even not working on older versions...
tbozhikov commentedon Aug 24, 2018
Hi @vforv, have you tried to implement your push notifications using the nativescript-plugin-firebase? It is more up-to-date with some features and could help you implement what you need. Also, we are in the process of moving features from push-plugin to nativescript-plugin-firebase, so this might be your best strategy long-term.