Page 1 of 1

[solved] Mobile App Support - Push Messages - No notification sound

Posted: 28 Apr 2019 01:01
by aLiEnHeAd
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

Re: Mobile App Support - Push Messages - No notification sound

Posted: 28 Apr 2019 01:55
by aLiEnHeAd
OK... got it.
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
                                                     }
to

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
                                                        }
                                                }
                                        }
and now it works 8-)

Re: [solved] Mobile App Support - Push Messages - No notification sound

Posted: 10 Jun 2019 22:40
by PoltoS
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

Posted: 11 Jun 2019 09:14
by aLiEnHeAd
PoltoS wrote:
10 Jun 2019 22:40
Looks like your change is not applicable to the latest develop branch anymore. What version are you on?
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

Posted: 14 Aug 2019 20:25
by Arek
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

Posted: 16 Aug 2019 11:04
by PoltoS
aLiEnHeAd wrote:
11 Jun 2019 09:14
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)
Have you tried v3.0.0?

Re: [solved] Mobile App Support - Push Messages - No notification sound

Posted: 16 Aug 2019 11:05
by PoltoS
Arek wrote:
14 Aug 2019 20:25
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?
May be application individual permissions are restricting the notification sound?