maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] JPush: Push via Jabber (for push email, etc) (https://talk.maemo.org/showthread.php?t=63903)

xur17 2010-10-16 20:23

[Announce] JPush: Push via Jabber (for push email, etc)
 
I am proud to announce my first software release for Maemo (actually my first for any platform).

The software itself is in a relatively stable state, but the actual packages, documentation, and install process are still alpha quality.

What is JPush?
JPush provides a way for information to be pushed to a device or computer. It provides 'hooks' on the server that cause 'actions' to be performed on the device, such as checking for new email. It can be used with an imap account to enable push

What do I need?
-A n900 device that is setup with a jabber account on it.
-A server that can receive email (postfix, or any similar system).

Instructions:
Do not follow these instructions if you are not comfortable with using the terminal. I will be releasing an installer with separate configuration files in the next couple of weeks that will make everything a lot easier.
http://wiki.maemo.org/JPush

Please ask any questions that you may have, and correct any issues / instructions that are unclear in the wiki so I can clean up the page, and make the setup easier. Also let me know if this works for you, so I have some idea of how many people are using it.

Bugs / Issues / Enhancement Requests:
Please post any issues or enhancement requests that you may have both in this forum (so we can discuss them), and in the bugtracker.

JPush Garage Page

Jaffa 2010-10-18 13:33

Re: [Announce] JPush: Push via Jabber (for push email, etc)
 
I've often wanted a mechanism for opening URLs on my phone, when there might not be a direct connection available.

A Firefox/Chrome plugin which said "Send to phone" and resulted in a push notification to open the browser would be very cool. See some thoughts about this recently:

badboyuk 2010-10-18 14:07

Re: [Announce] JPush: Push via Jabber (for push email, etc)
 
Hi,

Is there any unique feature about this app? As we already have push email on our n900's so I don't really see the point of this app unless you can give us other examples that we could benefit from this app.

Reffyyyy 2010-10-18 14:11

Re: [Announce] JPush: Push via Jabber (for push email, etc)
 
Quote:

Originally Posted by Jaffa (Post 844119)
I've often wanted a mechanism for opening URLs on my phone, when there might not be a direct connection available.

A Firefox/Chrome plugin which said "Send to phone" and resulted in a push notification to open the browser would be very cool. See some thoughts about this recently:

I have created a bash script that when clicked, it will read what is currently on the clipboard and then send the url over SSH to the N900 (which opens the page automatically)

Have only tested on Ubuntu 10.04/10.10 though.

Boke 2010-10-18 17:13

Re: [Announce] JPush: Push via Jabber (for push email, etc)
 
Quote:

Originally Posted by badboyuk (Post 844133)
Hi,

Is there any unique feature about this app? As we already have push email on our n900's so I don't really see the point of this app unless you can give us other examples that we could benefit from this app.

We do? really? I must have missed something...

(using gmail with IMAP)

Reffyyyy 2010-10-18 17:15

Re: [Announce] JPush: Push via Jabber (for push email, etc)
 
Quote:

Originally Posted by Boke (Post 844279)
We do? really? I must have missed something...

(using gmail with IMAP)

I previously used Nokia Messaging; I believe it had push email.

xur17 2010-10-18 17:22

Re: [Announce] JPush: Push via Jabber (for push email, etc)
 
Quote:

Originally Posted by Jaffa (Post 844119)
I've often wanted a mechanism for opening URLs on my phone, when there might not be a direct connection available.

A Firefox/Chrome plugin which said "Send to phone" and resulted in a push notification to open the browser would be very cool. See some thoughts about this recently:

I can do this pretty easily. I can set it up so this can be initialized by requesting a specific url, such as:

Code:

http://yourserver.com/someurl?http://www.urltoopen.com
The server software has a webserver built into it.

Does someone want to make a firefox / chrome plugin to make this request? I can provide more details if necessary.


Quote:

Originally Posted by badboyuk (Post 844133)
Hi,

Is there any unique feature about this app? As we already have push email on our n900's so I don't really see the point of this app unless you can give us other examples that we could benefit from this app.

This enables push email for ANY account, imap, pop3, etc. Select accounts, such as nokia messenging work right now (this also uses less battery).

Email is just the beginning of what this app can do. This can be expanded to push any information to the device.

xur17 2010-10-19 02:42

Re: [Announce] JPush: Push via Jabber (for push email, etc)
 
Quote:

Originally Posted by Jaffa (Post 844119)
I've often wanted a mechanism for opening URLs on my phone, when there might not be a direct connection available.

A Firefox/Chrome plugin which said "Send to phone" and resulted in a push notification to open the browser would be very cool. See some thoughts about this recently:

I noticed that vivainio mentioned OVI Notifications API. Was that recently released? Does anyone know what you have to setup on your device for that to work? I can't really find much information on it.

I built this application because I saw a lack of something link android device messaging, etc, but if OVI Notifications API exists, it might be better just to use that.

I don't want to reinvent the wheel here. Thoughts?

edit: It looks like this is only for future devices, and requires an invitation. It only mentions symbian and meego, no maemo. Does anyone know for sure on this?

Jaffa 2010-10-19 11:42

Re: [Announce] JPush: Push via Jabber (for push email, etc)
 
Quote:

Originally Posted by xur17 (Post 844676)
I noticed that vivainio mentioned OVI Notifications API. Was that recently released? Does anyone know what you have to setup on your device for that to work? I can't really find much information on it.

There's a white paper (PDF); and it's a new technology. I've not read about it in depth yet.

Jaffa 2010-10-19 11:43

Re: [Announce] JPush: Push via Jabber (for push email, etc)
 
Quote:

Originally Posted by Reffyyyy (Post 844135)
I have created a bash script that when clicked, it will read what is currently on the clipboard and then send the url over SSH to the N900 (which opens the page automatically)

Cool, and I had something similar where I'd just do:

Code:

ssh user@nxx.config open-browser <url>
However, at work there is no route between my desktop/laptop and N900. Reverse SSH tunnels work, but is more hassle than it's worth.

Quote:

Have only tested on Ubuntu 10.04/10.10 though.
Yeah, I want something magically cross-platform.

Jaffa 2010-10-19 11:52

Re: [Announce] JPush: Push via Jabber (for push email, etc)
 
Quote:

Originally Posted by xur17 (Post 844289)
I can do this pretty easily. I can set it up so this can be initialized by requesting a specific url, such as:

Code:

http://yourserver.com/someurl?http://www.urltoopen.com
The server software has a webserver built into it.

Does someone want to make a firefox / chrome plugin to make this request? I can provide more details if necessary.

FoxToPhone's sendtophone.js looks like it POSTs data of the form:

Code:

'title=' + encodeURIComponent(title) +
'&url=' + encodeURIComponent(url) +
'&sel=' + encodeURIComponent(selection)

This obviously encapsulates the page title, the URL of the object and the selected text on the page.

It sends it to a configurable base URL (default = https://chrometophone.appspot.com) with the path:

Code:

'/send?ver=' + this.apiVersion;
The page can return one of the following at the start of the response:
  • OK
  • LOGIN_REQUIRED
  • DEVICE_NOT_REGISTERED

If you can make a server component deal with that, the existing plugins can be used.

xur17 2010-10-19 13:42

Re: [Announce] JPush: Push via Jabber (for push email, etc)
 
Quote:

Originally Posted by Jaffa (Post 844965)
FoxToPhone's sendtophone.js looks like it POSTs data of the form:

Code:

'title=' + encodeURIComponent(title) +
'&url=' + encodeURIComponent(url) +
'&sel=' + encodeURIComponent(selection)

This obviously encapsulates the page title, the URL of the object and the selected text on the page.

It sends it to a configurable base URL (default = https://chrometophone.appspot.com) with the path:

Code:

'/send?ver=' + this.apiVersion;
The page can return one of the following at the start of the response:
  • OK
  • LOGIN_REQUIRED
  • DEVICE_NOT_REGISTERED

If you can make a server component deal with that, the existing plugins can be used.

This should be doable, and shouldn't be all that difficult. I can't do anything with the selection that is sent, but I can do the rest.

I need to get the project in a releasable state that is easier to install first.

Has anyone tried to install JPush / had any luck?

xur17 2010-10-20 16:43

Re: [Announce] JPush: Push via Jabber (for push email, etc)
 
I just released a version of the client into extras-devel. Edit /opt/jpush/jpush.py to set it up, and run 'jpush start' (as user, not as root) to start it.

Let me know if you have any issues with it.

vivainio 2010-10-20 18:34

Re: [Announce] JPush: Push via Jabber (for push email, etc)
 
Quote:

Originally Posted by Jaffa (Post 844965)
If you can make a server component deal with that, the existing plugins can be used.

Fastest start might be a google app engine application that just queues your "pushed" stuff in database and fetches it all when you launch an application on your phone.

Hooking it up to invoke some kind of push could be the distant next step. Now I just want to get stuff to my phone easily without doing something silly like connecting to the phone directly, or sending email to myself.

(Sorry if this constitutes a thread hijack ;-).


All times are GMT. The time now is 21:27.

vBulletin® Version 3.8.8