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)

itdoesntmatt 2015-03-08 20:05

Re: [Support thread] Android notifications
 
Hi sorry i m a news jolla User. Nice to meet you all on boat...i ve a doubt..i have installed whatsapp android on jolla and i have read that i have to leave app in background in Order to let it show me notification.
I dont understand its a problem of the update 11? Or its a way to fix it? IS a bug known in jolla team?

Another question For coderus,
Thank u For Your products, now i want to try mitakulu from a secondary number, i dont care if they Will ban me..why it gives me error even in registering,importing account from android app? And if a choose to receive sms i Cant receive it...

I really Like gestures and the concept behind the os..the only think i miss are whatsapp native ( do you Know when cepiperez Will release the app?) and other social Program. Others Program i can supply with android Version because i dont have to use it all the time..

iX3n0 2015-03-09 08:51

Re: [Support thread] Android notifications
 
Made my day, saved my life (again :D)

Works like a charm, good Job!!!

coderus 2015-03-09 09:01

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by itdoesntmatt (Post 1463462)
Hi sorry i m a news jolla User. Nice to meet you all on boat...i ve a doubt..i have installed whatsapp android on jolla and i have read that i have to leave app in background in Order to let it show me notification.
I dont understand its a problem of the update 11? Or its a way to fix it? IS a bug known in jolla team?

It's not a bug, it's feature

Quote:

Originally Posted by itdoesntmatt (Post 1463462)
Another question For coderus,
Thank u For Your products, now i want to try mitakulu from a secondary number, i dont care if they Will ban me..why it gives me error even in registering,importing account from android app? And if a choose to receive sms i Cant receive it...

because it's very old and many features are not working now :)

Quote:

Originally Posted by itdoesntmatt (Post 1463462)
I really Like gestures and the concept behind the os..the only think i miss are whatsapp native ( do you Know when cepiperez Will release the app?) and other social Program. Others Program i can supply with android Version because i dont have to use it all the time..

No idea about Cepi, you need to ask him yourself.

itdoesntmatt 2015-03-09 11:01

Re: [Support thread] Android notifications
 
Coderus

So it is a feature, theres a way to contact jolla to ask if in some way they could leave the possibility to disable it?
I think, but i m a ignorant in this matter, if i leave it on back groud in minimized app it Will drain a lot of battery, while if it works on background as in android Smartphone,it Will consume less charge...it is true or non sense?

I dont understand the part referring to mitakuluu. So its a old Version that i hav just installed an old Version or any Version of mitakuluu wont work because the dismission of service? Thanks

coderus 2015-03-09 11:05

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by itdoesntmatt (Post 1463510)
Coderus

So it is a feature, theres a way to contact jolla to ask if in some way they could leave the possibility to disable it?
I think, but i m a ignorant in this matter, if i leave it on back groud in minimized app it Will drain a lot of battery, while if it works on background as in android Smartphone,it Will consume less charge...it is true or non sense?

I dont understand the part referring to mitakuluu. So its a old Version that i hav just installed an old Version or any Version of mitakuluu wont work because the dismission of service? Thanks

please discover https://together.jolla.com for yourself :D

monkeyisland 2015-06-12 04:26

Re: [Support thread] Android notifications
 
@:coderus

after Update to the newest sailfish, no notifications are working (no blinking sound)

can you edit your great patch for the newest sailfish?

thanks

balodja 2015-06-14 09:09

Re: [Support thread] Android notifications
 
Hello, coderus.

I'm trying to get your wonderful notification daemon in use, but notifications are arriving very-very slowly. Typically from 20 minutes till 4 hours. Please, tell me how to debug such situation?

For now I'm trying it with Telegram android application. If the Telegram client is active, notifications arrive almost instantly. If the Telegram client is switched off, I need to wait for a long-long time.

Here is the requested in head post debug info, while I doubt in its usefulness for my case:

Code:

[nemo@Jolla ~]$ dconf dump /apps/android-notifications/
[/]
category_chat=@av []
dummyId=0
mode=1
defaultCategory='chat'
[nemo@Jolla ~]$ profileclient -g android.notification.tone
/usr/share/sounds/jolla-ringtones/stereo/jolla-imtone.wav
[nemo@Jolla ~]$ #install profileclient, if not installed: pkcon install profileclient
[nemo@Jolla ~]$ dconf dump /apps/android-notifications/
[/]
category_chat=@av []
dummyId=0
mode=1
defaultCategory='chat'
[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 "chat"
[D] NotificationsWatcher::handleNotification:223 - Replacing notification 317
[D] NotificationsWatcher::handleNotification:212 - Faking sound with "chat"
[D] NotificationsWatcher::handleNotification:223 - Replacing notification 317


coderus 2015-06-14 09:13

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by balodja (Post 1473521)
For now I'm trying it with Telegram android application. If the Telegram client is active, notifications arrive almost instantly. If the Telegram client is switched off, I need to wait for a long-long time.

so, if you not use android-notifications, Telegram notifications when not active appear instantly?

balodja 2015-06-14 09:55

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by coderus (Post 1473522)
so, if you not use android-notifications, Telegram notifications when not active appear instantly?

When I switch off both android-notifications and telegram messenger, I don't get any notifications at all, obviously.

Switched off android-notifications and telegram: no notifications.
Switched on android-notifications and telegram: fast notifications.
Switched on android-notifications and switched off telegram: very slow notifications.

One interesting detail maybe: there was a similar situation with my google email once. I use standard Jolla mail client, and it properly notifies me with new mails in gmail inbox. But there was single time when the mail client delayed notification for about 10-12 hours.

coderus 2015-06-14 10:19

Re: [Support thread] Android notifications
 
so, it can't show notifications slowly. it shows notifications when notification come from application.

Watchmaker 2015-06-15 14:35

Re: [Support thread] Android notifications
 
I can confirm that after updating to 1.1.6 android notifications is not working anymore. I leave android Whatsapp (waiting for a non-prerelease version of Mitakuuluu3) and Facebook Messenger open, and I don't receive notifications (on lockscreen and via LED blinking) anymore, nor any alarm is played. I had to revert to Zedge to have at least the alarms back. Coderus, can I do something to help debugging this issue? Or do you already know what's causing this?

coderus 2015-06-20 07:26

Re: [Support thread] Android notifications
 
There is no way to detect if notification is from android or not in 1.1.6 update.I will do some more tests and more likely remove application and close this thread.

itdoesntmatt 2015-06-20 14:02

Re: [Support thread] Android notifications
 
but wtf, jolla team delete functionalities with newer updates? what does it mean . coderus what do u think about reporting this to them?thanks

balodja 2015-06-20 17:23

Re: [Support thread] Android notifications
 
coderus, if you are going to remove application, don't delete github repo, please.

coderus 2015-06-20 22:43

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by itdoesntmatt (Post 1474258)
but wtf, jolla team delete functionalities with newer updates? what does it mean . coderus what do u think about reporting this to them?thanks

no, they are making native sounds for android notifications, should be finished for 2.0

monkeyisland 2015-06-22 03:52

Re: [Support thread] Android notifications
 
but meanwhile we have no notifications till 2.0 that a pitty.
i have to reverse to an earlier sf version when it is possible.

Jimmy Rum 2015-06-23 19:19

Re: [Support thread] Android notifications
 
I couldn't find anything about this except for "improved notifications", but if this is coming in 2.0, that's great. However we have Zedge that can support that part. Unless haptic and LED notification are also included, this is a step backwards.
This is basically the situation before Android Notifications and it's only after we lost the functionality that it becomes clear how great this functionality is. Such a simple feature, yet so indispensible. I can only hope that the fact that because of changes Android Notification can't function anymore is a bug that will be fixed and not a feature in anticipation for future updates.
I don't know about you guys but during the day, I have my phone on mute. Android Notifications changed my life. It will be missed.

strobovalo 2015-06-23 19:38

Re: [Support thread] Android notifications
 
What is Zedge?

If SailfishOS 2.0 come with this feature is really cool but till the release is a pitty be without notifications =(

Android Notifications will not be updated anymore?

Jimmy Rum 2015-06-23 19:50

Re: [Support thread] Android notifications
 
It's an android app for setting system sounds (I think)
https://jolla.zendesk.com/hc/en-us/a...r-Jolla-device

coderus 2015-06-24 12:11

Re: [Support thread] Android notifications
 
Uploaded v0.6.0 to openrepos, try if it works for you.

DavidJ 2015-06-24 15:24

Re: [Support thread] Android notifications
 
v0.6.0 is giving me visible notification on notification screen but no LED and the tone is the default tone from Android Whatsapp.

monkeyisland 2015-06-24 15:32

Re: [Support thread] Android notifications
 
Same Here:confused:

coderus 2015-06-24 15:41

Re: [Support thread] Android notifications
 
can yo execute following commands in terminal:
Code:

systemctl --user stop android-notifications
android-notifications

and give me output after receiving notification

scegliau 2015-06-24 15:49

Re: [Support thread] Android notifications
 
Hi,

this is my debug log:

[nemo@Jolla ~]$ systemctl --user stop android-notifications
[nemo@Jolla ~]$ android-notifications
[D] NotificationsWatcher::NotificationsWatcher:61 - opening database "/home/nemo/.local/share/system/privileged/Notifications/notifications.db" false
[D] NotificationsWatcher::start:79 - Service registered successfully!
[D] NotificationsWatcher::handleNotify:460 - "AndroidNotification" "1 nuovo messaggio" "pippopippo" "/data/notificationIcon/com.whatsapp2130838948.png" QMap(("x-nemo-preview-body", QVariant(QString, "1 nuovo messaggio") ) ( "x-nemo-preview-icon" , QVariant(QString, "/data/notificationIcon/com.whatsapp2130838948.png") ) ( "x-nemo-preview-summary" , QVariant(QString, "pippopippo") ) )
[W] QSqlQuery::prepare:950 - QSqlQuery::prepare: database not open
[W] QSqlQuery::prepare:950 - QSqlQuery::prepare: database not open
[W] QSqlQuery::prepare:950 - QSqlQuery::prepare: database not open
[W] QSqlQuery::prepare:950 - QSqlQuery::prepare: database not open


Thanks for your great job !!!

coderus 2015-06-24 16:30

Re: [Support thread] Android notifications
 
I had this problem, but i thought i had fixed it...


I don't know, maybe you can try to delete application and install it again?

Jimmy Rum 2015-06-24 18:30

Re: [Support thread] Android notifications
 
I tried reinstalling, but it didn't work for me...
Thanks for not giving up though! I thought it was a hopeless situation from your messages.

coderus 2015-06-24 18:52

Re: [Support thread] Android notifications
 
post output of following please:
Code:

devel-su -p
ls -la /home/nemo/.local/share/system/privileged/Notifications/notifications.db
ls -la /usr/bin/android-notifications


Jimmy Rum 2015-06-24 19:41

Re: [Support thread] Android notifications
 
Listings? Hmm ok

Code:

-rw-r--r-- 1 nemo privileged 66560 2015-06-24 19:53 /home/nemo/.local/share/system/privileged/Notifications/notifications.db
-rwsr-xr-x 1 root root 263420 2015-06-24 14:07 /usr/bin/android-notifications


scegliau 2015-06-24 20:35

Re: [Support thread] Android notifications
 
Hi, my ls look like Jimmy's

running android-notifications in a 'devel-su -p' shell gives this output:

[nemo@Jolla ~]$ devel-su -p
Password:
Enjoy your privileges.
cat: /proc/821/environ: Permission denied
NOTICE: Env value ignored
[nemo@Jolla ~]$ android-notifications
[D] NotificationsWatcher::NotificationsWatcher:61 - opening database "/home/nemo/.local/share/system/privileged/Notifications/notifications.db" true
[D] NotificationsWatcher::start:79 - Service registered successfully!
[D] NotificationsWatcher::handleNotify:460 - "AndroidNotification" "1 nuovo messaggio" "pippopippo" "/data/notificationIcon/com.whatsapp2130838948.png" QMap(("x-nemo-preview-body", QVariant(QString, "1 nuovo messaggio") ) ( "x-nemo-preview-icon" , QVariant(QString, "/data/notificationIcon/com.whatsapp2130838948.png") ) ( "x-nemo-preview-summary" , QVariant(QString, "pippopippo") ) )

so process can read notifications.db file, but the nothing chages: I receive visual notification but no sound and no led ones.

I'm not sure this test can be usefull (because of the error in reading env) but...

If you need other test...you have only to ask

thanks and regards

coderus 2015-06-24 20:50

Re: [Support thread] Android notifications
 
try 0.6.1 version
if not work try removing package, reboot phone, and install it again after reboot

scegliau 2015-06-24 20:59

Re: [Support thread] Android notifications
 
You are The Man :-)

It works like a charm,

many thanks,
andrea

coderus 2015-06-24 21:01

Re: [Support thread] Android notifications
 
good to see t finally works for you

scegliau 2015-06-24 21:40

Re: [Support thread] Android notifications
 
Quote:

Originally Posted by scegliau (Post 1474707)

It works like a charm,

...not realy true...it works untill I use android application which triggers notifications.
In my case android app is whatsapp and I receive sound/vibration and led notifications till i use application to read messages: after that I don't receive more notifications (only visual one, as before).
If I reinstall android-notifications it works again, but the problem comes back as soon as I read a message.

Excuse me for my hurry replying you before...but I like this app and I want it back :-)

monkeyisland 2015-06-25 03:56

Re: [Support thread] Android notifications
 
i like this app too, please can you making it working for us.

kkarioja 2015-06-25 05:15

Re: [Support thread] Android notifications
 
I can't make it work with Viber. I'm running Sailfish 1.1.6.27 and Viber 5.4.1.

Anyone else with the same problem?

okourkoulos 2015-06-25 06:57

Re: [Support thread] Android notifications
 
Same problem here.

coderus 2015-06-25 07:04

Re: [Support thread] Android notifications
 
if you don't post me logs and explain your problem properly i can't help you.

scegliau 2015-06-25 08:24

Re: [Support thread] Android notifications
 
I installed 6.2, but the situation don't change.

I noticed this:

when arrive first message I don't receive led/sound notifications:

Jun 25 10:17:36 Jolla alien.sh[862]: 06-25 10:17:36.162 2775 8346 E MediaPlayer: Uri is content://settings/system/notification_sound
Jun 25 10:17:36 Jolla alien.sh[862]: 06-25 10:17:36.165 955 1058 E MediaPlayerService: Couldn't open fd for content://settings/system/notification_sound
Jun 25 10:17:36 Jolla alien.sh[862]: 06-25 10:17:36.167 2775 8346 E MediaPlayer: Unable to to create media player
Jun 25 10:17:36 Jolla ons[7112]: [D] NotificationsWatcher::handleNotify:455 - "AndroidNotification" "1 nuovo messaggio" "pippopippo" "/data/notificationIcon/com.whatsapp2130838948.png" QMap(("x-nemo-preview-body", QVariant(QString, "1 nuovo messaggio") ) ( "x-nemo-preview-icon" , QVariant(QString, "/data/notificationIcon/com.whatsapp2130838948.png") ) ( "x-nemo-preview-summary" , QVariant(QString, "pippopippo") ) )


if I don't read it and another message arrives I receive notifications and theese are logs:

Jun 25 10:17:57 Jolla alien.sh[862]: 06-25 10:17:57.992 2775 8355 E MediaPlayer: Uri is content://settings/system/notification_sound
Jun 25 10:17:57 Jolla alien.sh[862]: 06-25 10:17:57.996 955 955 E MediaPlayerService: Couldn't open fd for content://settings/system/notification_sound
Jun 25 10:17:58 Jolla alien.sh[862]: 06-25 10:17:57.997 2775 8355 E MediaPlayer: Unable to to create media player
Jun 25 10:17:58 Jolla ons[7112]: [D] NotificationsWatcher::handleNotify:455 - "AndroidNotification" "2 nuovi messaggi" "pippopippo" "/data/notificationIcon/com.whatsapp2130838948.png" QMap(("x-nemo-preview-body", QVariant(QString, "2 nuovi messaggi") ) ( "x-nemo-preview-icon" , QVariant(QString, "/data/notificationIcon/com.whatsapp2130838948.png") ) ( "x-nemo-preview-summary" , QVariant(QString, "pippopippo") ) )
Jun 25 10:17:58 Jolla ons[7112]: [D] NotificationsWatcher::handleNotification:315 - Faking sound with "chat"
Jun 25 10:17:58 Jolla ons[7112]: [D] NotificationsWatcher::handleNotification:326 - Replacing notification 920
Jun 25 10:17:58 Jolla ons[7112]: [D] NotificationsWatcher::handleNotify:455 - "android-notifications" "" "" "" QMap(("x-nemo-feedback", QVariant(QString, "chat") ) )
Jun 25 10:17:58 Jolla ons[7112]: [D] NotificationsWatcher::handleNotify:455 - "pippopippo" "1 nuovo messaggio" "pippopippo" "/data/notificationIcon/com.whatsapp2130838948.png" QMap(("x-nemo-feedback", QVariant(QString, "chat") ) ( "x-nemo-icon" , QVariant(QString, "/data/notificationIcon/com.whatsapp2130838948.png") ) ( "x-nemo-preview-body" , QVariant(QString, "1 nuovo messaggio") ) ( "x-nemo-preview-icon" , QVariant(QString, "/data/notificationIcon/com.whatsapp2130838948.png") ) ( "x-nemo-preview-summary" , QVariant(QString, "pippopippo") ) ( "x-nemo-priority" , QVariant(QString, "100") ) )

So It seems the problem occurs only at the first notification...
Hope this helps :-)

coderus 2015-06-25 09:01

Re: [Support thread] Android notifications
 
Try this version and also post a log: http://repo.merproject.org/obs/home:...la.armv7hl.rpm

scegliau 2015-06-25 09:56

Re: [Support thread] Android notifications
 
1 Attachment(s)
In attach you can find logs.

Starting from line 34 (serial 73) I receveid notifications, while for serials 69-72 no sound or led.

Thanks
andrea


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

vBulletin® Version 3.8.8