Active Topics

 


Reply
Thread Tools
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#11
Originally Posted by geekgirl74 View Post
It does receive the test messages from the app, but - except for a test e-mail, which it didn't receive (and which would be my most wanted feature) - I haven't tested any further yet.
Alright, that sounds pretty good.
So, the communication between the Pebble and SkippingStones works.

That it is not doing anything when you receive a "real" e-mail is expected as this is not implemented yet.
Essentially, what is missing is that SkippingStones needs to get a notification about the new e-mail.
As far as I know, the preferred way to get that information should be via dbus.
The implementation of this usually is also pretty much straight forward.
However, one needs to know the correct dbus interface name, method/signal name etc. that is used for getting this information.
Of course, this all assumes that information about e-mails is available via dbus at all.

One starting point would be to use "dbus-monitor" in a shell on the Jolla and see what is going on on the system and/or session bus.
If anyone else has further insights into this, all information is highly appreciated.
__________________
 

The Following User Says Thank You to Wonko For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#12
One thing: even though I have SDK 2.0 version installed, the working things seem to run good so far. I sent myself a test SMS which was received and displayed properly. Outgoing calls are handled as incoming calls, as you already noted. The only annoying thing is the Pebble upgrade warning, which I could live with.

Unfortunately I don't know dbus enough to be of any help
 
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#13
Alright, I googled a little bit and found this:
http://talk.maemo.org/showthread.php?t=92303

Some more minutes later, I finished this very much untested prototype:
https://github.com/ruedigergad/Skipp...l.rpm?raw=true

Please be aware that I didn't even had the time to test that on my own device yet.
If you are brave enough, you can give it a try and see if it adds e-mail notification support.
If it is not working, please try to run SkippingStones ("harbour-skippingstones") from the command line and see if anything meaningful is emitted when an e-mail is received.
__________________
 

The Following 3 Users Say Thank You to Wonko For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#14
Thank you so much for your efforts. It still doesn't do anything when receiving emails, from the commandline there isn't any update, when an email is received.
 

The Following User Says Thank You to For This Useful Post:
HtheB's Avatar
Moderator | Posts: 3,715 | Thanked: 7,419 times | Joined on Dec 2009 @ Bize Her Yer Trabzon
#15
vote for this:
https://together.jolla.com/question/...-destinations/
__________________
www.HtheB.com
Please donate if you think I'm doing a good job.
 

The Following 3 Users Say Thank You to HtheB For This Useful Post:
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#16
Originally Posted by geekgirl74 View Post
Thank you so much for your efforts. It still doesn't do anything when receiving emails, from the commandline there isn't any update, when an email is received.
Thanks for the feedback.
Apparently, I had a misconception about how I would use the information with respect to dbus linked above.
It seems that others also ran into this problem:
https://together.jolla.com/question/...-destinations/
https://www.mail-archive.com/mer-gen.../msg01364.html
https://lists.sailfishos.org/piperma...er/001918.html
Unfortunately, I didn't find any information about a viable solution yet.
Admittedly, I also looked just very briefly due to my lack of time.
Unfortunately, it seems that getting the required information (ideally with email body) requires some more work than just simply listening in on dbus.

Edit: Some more info: http://stackoverflow.com/questions/2...r-method-calls
__________________

Last edited by Wonko; 2014-04-04 at 08:29.
 

The Following 4 Users Say Thank You to Wonko For This Useful Post:
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#17
Alright, I couldn't stop myself from looking a little bit more into this.
After all, having an interesting technical problem may turn out to be a little bit addictive.

So, for the impatient ones:
I uploaded a new version that emits at least some information about new e-mails:
https://github.com/ruedigergad/Skipp...l.rpm?raw=true

But please be warned that this is a really crude hack and that the functionality is far from complete.
One known issue is that the e-mail body is not displayed at all.
Another known issue is that if more than one e-mail was received, only a sort of "summary" like "2 new e-mails" or so is sent.


For the technically interested:
Well, this hack is likely as dirty as it gets.
I started off by looking at this post:
http://stackoverflow.com/questions/2...r-method-calls
However, as the solution proposed there didn't work, I began to change the hack.

Essentially, what I did now is that my adapter class for interacting with dbus has a "Notify" method with the correct signature to match the dbus method.
The class also has the Q_CLASSINFO to match the involved interface ('Q_CLASSINFO("D-Bus Interface", "org.freedesktop.Notifications"') and the object registered itself at the appropriate path.
Additionally, I manually added a match for "interface='org.freedesktop.Notifications',member= 'Notify',type='method_call',eavesdrop='true'".

Overall, this way to get the info is very hackish and dirty.
Furthermore, things are very likely to break with further SailfishOS updates.
Nonetheless, I wanted to share my findings.


Outlook, for volunteers(? ):
One way for getting the body of the e-mail could be to fetch it from QMF.
It seems that the message ids as used by QMF are contained in the notification message.
So, this could be the entry point in fetching the body of the e-mail.
However, this could become complicated if multiple e-mail accounts are configured on the phone.

While talking about QMF.
Another way for getting notifications about new e-mails could be by directly using QMF.


Edit:
Wishlist, for the Jolla devs(?):
Offer an easier to use way to get the required information "out of the box".
Maybe by adding according signals that also contain, e.g., the email sender, subject, and body?
Similarly to the together.jolla.com request by Elleo, as linked above.
__________________

Last edited by Wonko; 2014-04-04 at 18:22.
 

The Following 6 Users Say Thank You to Wonko For This Useful Post:
Dave999's Avatar
Posts: 7,074 | Thanked: 9,069 times | Joined on Oct 2009 @ Moon! It's not the East or the West side... it's the Dark Side
#18
If i remember correctly i posted in this thread and On topic? I guess someone removed it for no reason. What's going on...it's that sneaky mod?
__________________
Do something for the climate today! Anything!

I don't trust poeple without a Nokia n900...

Last edited by Dave999; 2014-04-04 at 18:44.
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#19
That is just wonderful, Wonko Thank you so much.

I'd never thought, that this would be fixed so fast. Feels good to know, that it's not impossible anymore to use Pebble and Jolla together.

Looking forward to the next update/fix
 

The Following User Says Thank You to For This Useful Post:
Posts: 8 | Thanked: 3 times | Joined on Nov 2011 @ Poland
#20
I also really thank you Wonko. I am really missing the application for the pebble.
 

The Following User Says Thank You to Cyrano For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 12:29.