maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [M5] [Announce] Yappari - A WhatsApp Client for the N900 ONLY (https://talk.maemo.org/showthread.php?t=84605)

naru 2012-06-05 04:16

Re: [Announce] Yappari - A WhatsApp client for the N900 ONLY - v0.0.9
 
scropius .... may be something here for u chek this link http://makergeek.co.uk/2010/05/22/n9...s-from-python/

Scorpius 2012-06-05 04:21

Re: [Announce] Yappari - A WhatsApp client for the N900 ONLY - v0.0.9
 
Quote:

Originally Posted by naru (Post 1217638)
scropius .... may be something here for u chek this link http://makergeek.co.uk/2010/05/22/n9...s-from-python/

He doesn't update notifications in that link. He just show a single notification. Actually that guy is even more lost than I am, since he says he can't make a sound alert, led alert and a vibrate alert in the same notification, but you actually can through something called hints.

Not even the examples in the source tarball of libnotify work updating the notifications in Maemo :( this is gonna be tough.

naru 2012-06-05 04:25

Re: [Announce] Yappari - A WhatsApp client for the N900 ONLY - v0.0.9
 
oh.. sorry ... dear.. but dont worry we will find :cool: that i know

Scorpius 2012-06-05 05:02

Re: [Announce] Yappari - A WhatsApp client for the N900 ONLY - v0.0.9
 
OK I think I got it, and this is why I hate the lack of documentation of Maemo, or actually, how broken it is. It's such a nice OS, and it could have been so powerful, but it was always in the wrong hands, and Nokia haven't released the whole code yet.

So here it is for all the developers out there that tried to stack notifications and never could and wondered why, and this is why: All the notifications have to have ID = 0 to be stacked. For them I hope they can find this through Google.

And no, there's no function to set the ID of a notification. How can you do it? like this:
Code:

n = notify_notification_new(summary,body,"icon",NULL);
g_object_set (G_OBJECT (n),"id", 0, NULL);

That's the first notification. You have to keep your list of notifications of course. When you want to update it, you retreive it from your list and have to do it again:

Code:


n = myList.value(key);
g_object_set (G_OBJECT (n),"id", 0, NULL);

/* Set the number of new notifications */
notify_notification_set_hint_int32 (n,"amount", myList.length());
notify_notification_update(n,new_summary,new_body,"icon");

To show the notification you have to use notify_notification_show after that as usual.

And if you're wondering how I found out the g_object_set (G_OBJECT (notification),"id", 0, NULL); ???

Well I had to read half of the hildon source code for that :(

pablocrossa 2012-06-05 05:26

Re: [Announce] Yappari - A WhatsApp client for the N900 ONLY - v0.0.9
 
Quote:

Originally Posted by Scorpius (Post 1217648)
OK I think I got it, and this is why I hate the lack of documentation of Maemo, or actually, how broken it is. It's such a nice OS, and it could have been so powerful, but it was always in the wrong hands, and Nokia haven't released the whole code yet.

So here it is for all the developers out there that tried to stack notifications and never could and wondered why, and this is why: All the notifications have to have ID = 0 to be stacked. For them I hope they can find this through Google.

And no, there's no function to set the ID of a notification. How can you do it? like this:
Code:

n = notify_notification_new(summary,body,"icon",NULL);
g_object_set (G_OBJECT (n),"id", 0, NULL);

That's the first notification. You have to keep your list of notifications of course. When you want to update it, you retreive it from your list and have to do it again:

Code:


n = myList.value(key);
g_object_set (G_OBJECT (n),"id", 0, NULL);

/* Set the number of new notifications */
notify_notification_set_hint_int32 (n,"amount", myList.length());
notify_notification_update(n,new_summary,new_body,"icon");

To show the notification you have to use notify_notification_show after that as usual.

And if you're wondering how I found out the g_object_set (G_OBJECT (notification),"id", 0, NULL); ???

Well I had to read half of the hildon source code for that :(

hehe, love the sad face from reading all the source, must have been a pain :) Yes, I believe that is how it was done, shame I was that little bit too late, I was just as lost as you while making a simple `a la` NET SEND chat app on the N900 :rolleyes: Let me see if I can find the source code and send it to you, it could have some useful data like this :)

EDIT: No, sorry, not backing up before a formatting tends to mean you lose data :(

youriehv 2012-06-05 06:06

Re: [Announce] Yappari - A WhatsApp client for the N900 ONLY - v0.0.9
 
Thankyou for this great app!
It works perfect!!!!!

If its possible to donate, i will do!

Maby someone can create another icon, because thisone is not that beautiful?

Just a question, it still uses the java version?

nexus101 2012-06-05 06:07

Re: [Announce] Yappari - A WhatsApp client for the N900 ONLY - v0.0.9
 
@Scorpius

works nicely so far. You may call yourself Maemo-Hero :)

Another nice TODO-feature would be, if one could see if your counterpart in whatsapp is currently writing a message (that's done in the java port and I like it :P )

cheers,
nexus

yakub762 2012-06-05 06:17

Re: [Announce] Yappari - A WhatsApp client for the N900 ONLY - v0.0.9
 
i get this error ''the verification sms was never received .please try later''
:(

Scorpius 2012-06-05 06:20

Re: [Announce] Yappari - A WhatsApp client for the N900 ONLY - v0.0.9
 
Talking about icons and this is a bit of a let down, it's totally impossible to make the notifications stackable (several in the same notification) using a custom icon. That's how broken Maemo is.

In the next releases the notifications will look like the notifications you see when you have received a chat message.

I can't do anything about that (except modify hildon-desktop maybe).

It's not a big deal to me.

BTW I like the current icon, but if something better comes up I guess we can change it.

Yappari has never needed the Java port to work. People only needed to be registered in Whatsapp using that. This is not a frontend of the Java port, this is a whole new application 100% native. No Java, python, or any pseudo-interpreted/pseudo-compiled language.

Yappari is 100% native so it runs faster and uses less battery keep in mind that


Quote:

Originally Posted by yakub762 (Post 1217667)
i get this error ''the verification sms was never received .please try later''
:(

Send me your /home/user/MyDocs/yappari.log, but I bet you typed your phone wrong (leading zeroes in phone number and/or country code)

naru 2012-06-05 06:20

Re: [Announce] Yappari - A WhatsApp client for the N900 ONLY - v0.0.9
 
1 Attachment(s)
scropius u told me no notification in this ver but some time sound and sms auto on mins this ver notifi me when some one msg me...chek this scrin shoot i am geting notification with sound but some timeAttachment 26762

i am giting notification when some one msg me also slow sound also coming i am using cssu testing


All times are GMT. The time now is 23:20.

vBulletin® Version 3.8.8