Hi!
I use the Popp HUB App to control Z-Way.
If I get push notifications (from a logical rule) there is no notification sound on my android phone, but the push test message plays my notification sound.
I noticed that these seem to be two types of notifications.
The one that works with sound is grey and says "Popp HUB" as subject. The one without sound says "Z-Way Control" as subject and has a red icon...
See attached screenshot
Any ideas?!
Z-Way: v2.3.8
Mobile App Support 1.3.4
[solved] Mobile App Support - Push Messages - No notification sound
[solved] Mobile App Support - Push Messages - No notification sound
- Attachments
-
- Screenshot_20190427-233705.png (34.49 KiB) Viewed 6128 times
Last edited by aLiEnHeAd on 29 Apr 2019 08:32, edited 1 time in total.
Re: Mobile App Support - Push Messages - No notification sound
OK... got it.
in MobileAppSupports index.js for command "alarm" the message creation for android phones is wrong. I changed it from
to
and now it works
in MobileAppSupports index.js for command "alarm" the message creation for android phones is wrong. I changed it from
Code: Select all
message = {
to: deviceToken,
notification: {
title: "Z-Way Control",
body: alarmMessage
}
Code: Select all
if (os === self.ANDROID) {
message = {
to: deviceToken,
data: {
type: "alarm:message",
data: alarmMessage,
hubId: hubId
}
}
} else if (os === self.IOS) {
message = {
to: deviceToken,
notification: {
title: "Z-Way Control",
body: alarmMessage
}
}
}
Re: [solved] Mobile App Support - Push Messages - No notification sound
Looks like your change is not applicable to the latest develop branch anymore. What version are you on?
Re: [solved] Mobile App Support - Push Messages - No notification sound
Perhaps someone else already fixed it on the dev branch but it has not been released yet?
My Versions:
Z-Way: v2.3.8 UI: 1.9.0, build date: 24-09-2018 14:06:19
Mobile App Support 1.3.4 (stable)
Re: [solved] Mobile App Support - Push Messages - No notification sound
I've got problem... maybe it is problem with phone but I've got 3 devices, my phone , wife and tablet (all 3 Android). On my phone and tablet I've got notifications with sound, on my wife phone without. I've checked it and she has "sounds" turned on for push notifications from pop hub app. What else could it be?
Re: [solved] Mobile App Support - Push Messages - No notification sound
May be application individual permissions are restricting the notification sound?Arek wrote: ↑14 Aug 2019 20:25I've got problem... maybe it is problem with phone but I've got 3 devices, my phone , wife and tablet (all 3 Android). On my phone and tablet I've got notifications with sound, on my wife phone without. I've checked it and she has "sounds" turned on for push notifications from pop hub app. What else could it be?