Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

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

    Reply
    Page 2 of 2 | Prev |   1   2 |
    Jaffa | # 11 | 2010-10-19, 11:52 | Report

    Originally Posted by xur17 View Post
    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    xur17 | # 12 | 2010-10-19, 13:42 | Report

    Originally Posted by Jaffa View Post
    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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    xur17 | # 13 | 2010-10-20, 16:43 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    vivainio | # 14 | 2010-10-20, 18:34 | Report

    Originally Posted by Jaffa View Post
    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 ;-).

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 2 of 2 | Prev |   1   2 |
vBulletin® Version 3.8.8
Normal Logout