maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   [Support thread] Android notifications (https://talk.maemo.org/showthread.php?t=94652)

coderus 2015-03-01 21:11

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by synt (Post 1462495)
Code:

[nemo@Jolla ~]$ systemctl --user stop android-notifications
[nemo@Jolla ~]$ android-notifications
[D] NotificationsWatcher::start:64 - Service registered successfully!


and then nothing even if i get notifications... Tested with aptoide. Notifications go to events view. Configuration is blacklist with 0 apps in list + defaults.

i don't know, it should do at least something :D

synt 2015-03-01 21:24

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by coderus (Post 1462497)
i don't know, it should do at least something :D

Yeah its pretty strange. If i open the app window then i can see some output when its starting but nothing interesting i think. Anyway I can just install v.0.2.0 and use that. I will lose white/blacklist but its still much better than nothing :)

coderus 2015-03-01 21:31

Re: [Support thread] Android notifications
 
so, you saying v0.2.0 still working for you?
Ah, and also show please output of
Code:

dbus-send --print-reply --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.GetNotifications string:AndroidNotification
after receiving some android notifications

synt 2015-03-01 21:47

Re: [Support thread] Android notifications
 
Yes v0.5.x does not work. But 0.2.0 or 0.1.0 works fine. Thats why i think only white/blacklist is the problem. Also if i remove the app and install it again, it remembers all previous configurations about white/blacklist. Where is it stored? Or how can it remember even after removing the app?

Here is the output you asked:

Code:

[nemo@Jolla ~]$ dbus-send --print-reply --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.GetNotifications string:AndroidNotification
method return sender=:1.27 -> dest=:1.197 reply_serial=2
  array [
      struct {
        string "AndroidNotification"
        uint32 42
        string "/data/notificationIcon/com.aptoide.partners2130837924.png"
        string "Aptoide Appstore is working"
        string "Loading stores"
        array [
            string "default"
            string ""
        ]
        array [
            dict entry(
              string "x-nemo-timestamp"
              variant                  struct {
                    struct {
                        int32 2015
                        int32 3
                        int32 1
                    }
                    struct {
                        int32 21
                        int32 41
                        int32 20
                        int32 567
                    }
                    int32 1
                  }
            )
        ]
        int32 -1
      }
  ]


coderus 2015-03-01 22:14

Re: [Support thread] Android notifications
 
And "Aptoide Appstore is working - Loading stores" notification is visible on your events screen?

j4mppa 2015-03-01 22:25

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by synt (Post 1462477)
I got a problem after factory reset and updating back to 1.1.2.16. Now 0.5.0 or 0.5.1 doesnt work anymore. 0.2.0 still works so maybe its about white/blacklist? I tried reboots and reinstalls but nothing happens when i get a notification to the events screen. Before resetting my phone i had 0.5.0 installed and it worked nicely. Any help?

Hi I have the same problem as synt. After updating from 0.2.0 to 0.5.0 the app stopped working. Tried same as he with no help. Reverted back to 0.2.0 and now its working normally. but I am happy with this too:)

synt 2015-03-01 22:26

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by coderus (Post 1462506)
And "Aptoide Appstore is working - Loading stores" notification is visible on your events screen?

Yes.

10characters

coderus 2015-03-01 22:28

Re: [Support thread] Android notifications
 
try v0.5.2. Tell me if it wont help, i'll prepare version with more debug verbosity.

synt 2015-03-01 22:47

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by coderus (Post 1462510)
try v0.5.2. Tell me if it wont help, i'll prepare version with more debug verbosity.

Now it works, very nice work. I think maybe it plays notification sound twice. The default jolla-imtone sounds a little bit weird. Anyway it is not a big problem. Thanks Coderus!

j4mppa 2015-03-02 10:05

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by coderus (Post 1462510)
try v0.5.2. Tell me if it wont help, i'll prepare version with more debug verbosity.

This version is working fine. Thanks!

R1v3r 2015-03-02 10:26

Re: [Support thread] Android notifications
 
Hello Coderus! Once again thanks for the great app!

Onea question. I have this newest version installed, but I get only vibration and led info, but no sound. I have added this sound jolla-imtone in the app, but it does not play a sound..

I have white list and there are 3 app. I added aptoide in there also to test.

Default category is Custom and custom sound is jolla-imtone

Same thing happends in blacklist. (vibration and led yes, and sound no.

Edit: More testing... -> Sound is not coming, when using this custom category. Others work! I use those :)

M_NP 2015-03-02 10:42

Re: [Support thread] Android notifications
 
Thanks for the app! We have been waiting for this loooooong.
Some problems though...
I am only able to configure other than default jolla-im tone for SMS default category. Any other configuration email, chat, custom, even silent result to playing jolla-im tone. ?? Am I missing something here?
I am testing with Whatsapp.

One question more, should the led colour follow whatsapp settings? I'm only gettting blue led?

Anyway thanks for this, I'm sure these issues will be solved somehow.

coderus 2015-03-02 11:06

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by R1v3r (Post 1462560)
Hello Coderus! Once again thanks for the great app!

Onea question. I have this newest version installed, but I get only vibration and led info, but no sound. I have added this sound jolla-imtone in the app, but it does not play a sound..

I have white list and there are 3 app. I added aptoide in there also to test.

Default category is Custom and custom sound is jolla-imtone

Same thing happends in blacklist. (vibration and led yes, and sound no.

Edit: More testing... -> Sound is not coming, when using this custom category. Others work! I use those :)

check output of
Code:

dconf dump /apps/android-notifications/
Quote:

Originally Posted by M_NP (Post 1462563)
One question more, should the led colour follow whatsapp settings? I'm only gettting blue led?

of course no :) led collor in sailfish follow notification category.

R1v3r 2015-03-02 11:19

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by coderus (Post 1462568)
check output of
Code:

dconf dump /apps/android-notifications/


of course no :) led collor in sailfish follow notification category.

login as: nemo
nemo@192.168.2.15's password:
Last login: Fri Jan 2 13:39:24 2015 from 192.168.2.10
,---
| SailfishOS 1.1.2.16 (Yliaavanlampi) (armv7hl)
'---
[nemo@Jolla ~]$ dconf dump /apps/android-notifications/
[/]
category_email=[<'com.whatsapp'>]
blacklist=[<'com.here.app.maps'>, <'com.aptoide.partners'>]
category_chat=@av []
mode=1
whitelist=[<'com.whatsapp'>, <'com.here.app.maps'>, <'com.aptoide.partners'>]
dummyId=uint32 1616
category_android_notify=@av []
defaultCategory='chat'
category_sms=@av []
[nemo@Jolla ~]$

and btw, I got yellow led from the whatsapp :D (It is added to email category, so I could get sound)

M_NP 2015-03-02 11:19

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by coderus (Post 1462568)
check output of
Code:

dconf dump /apps/android-notifications/


of course no :) led collor in sailfish follow notification category.

OK, that explains the color, because only SMS configuration works.
Now I still need to find out why only SMS...

Does anyone else have similar issues with this app?

coderus 2015-03-02 11:22

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by R1v3r (Post 1462570)
login as: nemo
nemo@192.168.2.15's password:
Last login: Fri Jan 2 13:39:24 2015 from 192.168.2.10
,---
| SailfishOS 1.1.2.16 (Yliaavanlampi) (armv7hl)
'---
[nemo@Jolla ~]$ dconf dump /apps/android-notifications/
[/]
category_email=[<'com.whatsapp'>]
blacklist=[<'com.here.app.maps'>, <'com.aptoide.partners'>]
category_chat=@av []
mode=1
whitelist=[<'com.whatsapp'>, <'com.here.app.maps'>, <'com.aptoide.partners'>]
dummyId=uint32 1616
category_android_notify=@av []
defaultCategory='chat'
category_sms=@av []
[nemo@Jolla ~]$

and btw, I got yellow led from the whatsapp :D

you have whatsapp in email category, show me configuration when it doesn't work as expected.

R1v3r 2015-03-02 11:30

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by coderus (Post 1462572)
you have whatsapp in email category, show me configuration when it doesn't work as expected.

Hello Coderus.

Yes. Sorry.

This is the log

[nemo@Jolla ~]$ dconf dump /apps/android-notifications/
[/]
category_email=@av []
blacklist=[<'com.here.app.maps'>]
category_chat=@av []
mode=1
whitelist=@av []
dummyId=uint32 1638
category_android_notify=[<'com.aptoide.partners'>, <'com.whatsapp'>]
defaultCategory='android_notify'
category_sms=@av []
[nemo@Jolla ~]$

(I changed back to this no sound and now I get back to email category) :)

coderus 2015-03-02 12:04

Re: [Support thread] Android notifications
 
show also profileclient -g android.notification.tone

R1v3r 2015-03-02 12:10

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by coderus (Post 1462581)
show also profileclient -g android.notification.tone

Sorry. I am close to noob...:

login as: nemo
nemo@192.168.2.15's password:
Last login: Mon Mar 2 13:26:10 2015 from 192.168.2.10
,---
| SailfishOS 1.1.2.16 (Yliaavanlampi) (armv7hl)
'---
[nemo@Jolla ~]$ profileclient -g android.notification.tone
-bash: profileclient: command not found
[nemo@Jolla ~]$ -g android.notification.tone
-bash: -g: command not found
[nemo@Jolla ~]$ show also profileclient -g android.notification.tone
-bash: show: command not found
[nemo@Jolla ~]$ show profileclient -g android.notification.tone
-bash: show: command not found
[nemo@Jolla ~]$

coderus 2015-03-02 13:05

Re: [Support thread] Android notifications
 
you need to install profileclient if not installed :)
pkcon install profileclient

R1v3r 2015-03-02 14:07

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by coderus (Post 1462593)
you need to install profileclient if not installed :)
pkcon install profileclient

Thanks for being understanding :)

Please see below. (Please note, that I have already changed to this email category. Should this be taken when there were no sound?)

[nemo@Jolla ~]$ profileclient -g android.notification.tone
/usr/share/sounds/jolla-ringtones/stereo/jolla-imtone.wav
[nemo@Jolla ~]$

coderus 2015-03-02 14:27

Re: [Support thread] Android notifications
 
this is tone selected for custom category.

R1v3r 2015-03-02 14:47

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by coderus (Post 1462614)
this is tone selected for custom category.

Okay coderus. Thanks for the info.

It is just strange, when I use this custom it does not make any sound..

But I can deal with it :) I just add whatsapp to this email notification :)

coderus 2015-03-02 14:53

Re: [Support thread] Android notifications
 
show me android-notifications log when you receiving notification and it should play custom sound?

R1v3r 2015-03-02 15:05

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by coderus (Post 1462620)
show me android-notifications log when you receiving notification and it should play custom sound?

Hi,

Do you mean this?

dbus-send --print-reply --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.GetNotifications string:AndroidNotification

Please see below.

HTML Code:

[nemo@Jolla ~]$ dbus-send --print-reply --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.GetNotifications string:AndroidNotification
method return sender=:1.22 -> dest=:1.214 reply_serial=2
  array [
      struct {
        string "AndroidNotification"
        uint32 1760
        string "/data/notificationIcon/com.aptoide.partners2130837924.png"
        string "Aptoide Appstore is working"
        string "Loading stores"
        array [
            string "default"
            string ""
        ]
        array [
            dict entry(
              string "x-nemo-priority"
              variant                  string "100"
            )
            dict entry(
              string "x-nemo-icon"
              variant                  string "/data/notificationIcon/com.aptoide.partners2130837924.png"
            )
            dict entry(
              string "x-nemo-feedback"
              variant                  string "android_notify"
            )
            dict entry(
              string "x-nemo-preview-summary"
              variant                  string "Aptoide Appstore is working"
            )
            dict entry(
              string "x-nemo-preview-icon"
              variant                  string "/data/notificationIcon/com.aptoide.partners2130837924.png"
            )
            dict entry(
              string "x-nemo-preview-body"
              variant                  string "Loading stores"
            )
            dict entry(
              string "x-nemo-timestamp"
              variant                  struct {
                    struct {
                        int32 2015
                        int32 3
                        int32 2
                    }
                    struct {
                        int32 15
                        int32 0
                        int32 53
                        int32 907
                    }
                    int32 1
                  }
            )
        ]
        int32 -1
      }
      struct {
        string "AndroidNotification"
        uint32 1752
        string "/data/notificationIcon/com.aptoide.partners17301634.png"
        string "Aptoide Appstore"
        string "7 uutta päivitystä saatavissa!"
        array [
            string "default"
            string ""
        ]
        array [
            dict entry(
              string "x-nemo-priority"
              variant                  string "100"
            )
            dict entry(
              string "x-nemo-icon"
              variant                  string "/data/notificationIcon/com.aptoide.partners17301634.png"
            )
            dict entry(
              string "x-nemo-feedback"
              variant                  string "email"
            )
            dict entry(
              string "x-nemo-preview-summary"
              variant                  string "Aptoide Appstore"
            )
            dict entry(
              string "x-nemo-preview-icon"
              variant                  string "/data/notificationIcon/com.aptoide.partners17301634.png"
            )
            dict entry(
              string "x-nemo-preview-body"
              variant                  string "7 uutta päivitystä saatavissa!"
            )
            dict entry(
              string "x-nemo-timestamp"
              variant                  struct {
                    struct {
                        int32 2015
                        int32 3
                        int32 2
                    }
                    struct {
                        int32 14
                        int32 47
                        int32 36
                        int32 937
                    }
                    int32 1
                  }
            )
        ]
        int32 -1
      }
  ]
[nemo@Jolla ~]$

Edit: So in this last 7 uutta päivitystä saatavissa! it just vibrated and led blinking.

coderus 2015-03-02 15:35

Re: [Support thread] Android notifications
 
no i mean set it to custom category, then do
systemctl --user stop android-notifications
android-notifications
and show outpot of terminal after receiving some notifications

R1v3r 2015-03-02 17:33

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by coderus (Post 1462629)
no i mean set it to custom category, then do
systemctl --user stop android-notifications
android-notifications
and show outpot of terminal after receiving some notifications

Ok. Now I get it!

See below,

HTML Code:

[nemo@Jolla ~]$ systemctl --user stop android-notifications
[nemo@Jolla ~]$ android-notifications
[D] NotificationsWatcher::start:64 - Service registered successfully!
[D] NotificationsWatcher::handleNotification:212 - Faking sound with "android_no          tify"
[D] NotificationsWatcher::handleNotification:221 - Replacing notification 1801
[D] NotificationsWatcher::handleNotification:212 - Faking sound with "android_no          tify"
[D] NotificationsWatcher::handleNotification:221 - Replacing notification 1801


az2111 2015-03-02 18:22

Re: [Support thread] Android notifications
 
Hey,
custom notification tone did even not work for me.

Here are my configuration:

Work mode: Whitelist
items in list: 2 (Facebook & Whatsapp)
default category: custom

silent: 0
chat: 0
sms: 0
email: 0
custom: 2 (Facebook & Whatsapp)
custom notification tone: my tone (could be played with, jolla music player)

best regards
az2111

coderus 2015-03-02 20:22

Re: [Support thread] Android notifications
 
hm, show me output of:
Code:

cat /usr/share/ngfd/events.d/android_notify.ini
cat /etc/profiled/60.android-notifications.ini


az2111 2015-03-02 21:04

Re: [Support thread] Android notifications
 
Hi,

output of: cat /usr/share/ngfd/events.d/android_notify.ini

Code:

[root@Jolla ~]# cat /usr/share/ngfd/events.d/android_notify.ini
[android_notify => play.mode=short]
sound.profile = im_fg.alert.tone@general => sound.filename
sound.stream.event.id = event-in-call
ffmemless.effect = NGF_SHORT
sound.stream.module-stream-restore.id = x-meego-ringing-volume
mce.led_pattern = PatternCommunicationIM
sound.enabled.profile = im_fg.alert.enabled => sound.enabled
haptic.type = alarm

[android_notify => play.mode=*,context@call_state.mode=active]
sound.profile = im_fg.alert.tone@general => sound.filename
sound.stream.event.id = event-in-call
sound.stream.module-stream-restore.id = sink-input-by-media-role:indicator-tone
mce.led_pattern = PatternCommunicationIM

[android_notify]
sound.profile = android.notication.tone => sound.filename
sound.profile.fallback = android.notication.tone@fallback => sound.filename
ffmemless.effect = NGF_SHORT
sound.stream.event.id = message-new-email
sound.stream.module-stream-restore.id = x-meego-ringing-volume
sound.stream.media.role = notification
sound.stream.droid.device.additional-route = AUDIO_DEVICE_OUT_SPEAKER
mce.led_pattern = PatternCommunicationIM
sound.enabled.profile = im.alert.enabled => sound.enabled
haptic.type = alarm

output of: cat /etc/profiled/60.android-notifications.ini

Code:

[root@Jolla ~]# cat /etc/profiled/60.android-notifications.ini
[datatype]

android.notification.tone = SOUNDFILE

[fallback]

android.notification.tone = /usr/share/sounds/jolla-ringtones/stereo/jolla-imtone.wav

Best regards
az2111

coderus 2015-03-02 21:25

Re: [Support thread] Android notifications
 
okay, that explains everything :D
Should be fixed in v0.5.3

az2111 2015-03-02 21:37

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by coderus (Post 1462717)
okay, that explains everything :D
Should be fixed in v0.5.3

GODFATHER of Programming

coderus 2015-03-02 21:41

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by az2111 (Post 1462721)
GODFATHER of Programming

lol, fixing own bugs in 3 versions is not good :D

Dave999 2015-03-02 21:44

Re: [Support thread] Android notifications
 
Coderus. GJ. Have seen any Russian money/program coming your way from the russian government?

az2111 2015-03-02 21:45

Re: [Support thread] Android notifications
 
Can we get a custom Colour for the custom notification tone?

Is it possible?

best regards
az2111

coderus 2015-03-02 22:13

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by Dave999 (Post 1462724)
Coderus. GJ. Have seen any Russian money/program coming your way from the russian government?

I have no deals with russian government :D

Quote:

Originally Posted by az2111 (Post 1462725)
Can we get a custom Colour for the custom notification tone?

Is it possible?

best regards
az2111

maybe, but only limited choose, like SMS LED, Chat LED, etc.

az2111 2015-03-02 22:41

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by coderus (Post 1462728)
maybe, but only limited choose, like SMS LED, Chat LED, etc.

A long time ago in mitakuuluu there was the possibility to change the colour of the led to pink and some more colours than than the standard colours.

would be cool if it isn't to much work.


thanks a lot
az2111

coderus 2015-03-02 22:54

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by az2111 (Post 1462733)
A long time ago in mitakuuluu there was the possibility to change the colour of the led to pink and some more colours than than the standard colours.

would be cool if it isn't to much work.


thanks a lot
az2111

yes, and because of that you can't use it in other application.

Boxeri 2015-03-07 12:14

Re: [Support thread] Android notifications
 
Hello

I might be just imaginating this, but I am somewhat sure that before the lates OS and Andrpid notifier updates I didn't have to keep android whatsapp open all the time in background to receive notifications of messages when the screen is closed. Now I have to. Is this same with others?

coderus 2015-03-07 16:36

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by Boxeri (Post 1463324)
Hello

I might be just imaginating this, but I am somewhat sure that before the lates OS and Andrpid notifier updates I didn't have to keep android whatsapp open all the time in background to receive notifications of messages when the screen is closed. Now I have to. Is this same with others?

It's U11 feature.


All times are GMT. The time now is 04:57.

vBulletin® Version 3.8.8