Skip to content

webOS-ports/org.webosports.messaging

Repository files navigation

org.webosports.messaging

The Messaging app and service for Lune OS, built with Enyo2 and node.js

Description

The messaging app is one of the core applications of the operating system and allows you to send and receive messages through various backend services (IM, SMS, ...).

Contributing

If you want to contribute you can just start with cloning the repository and make your contributions. We're using a pull-request based development and utilizing github for the management of those. All developers must provide their contributions as pull-request and github and at least one of the core developers needs to approve the pull-request before it can be merged.

Please refer to http://www.webos-ports.org/wiki/Communications for information about how to contact the developers of this project.

Building & Installing App

You can develop in the browser like a normal Enyo 2 web app - Messaging will use the data in db8SourceMock.js and the mock directory. You'll need node.js and enyo-dev: http://enyojs.com/docs/latest/developer-guide/getting-started/first-steps.html

After pulling this source code, start a bash shell, cd to the app directory, then run enyo init to pull in the dependencies.

To rebuild on any change (for developing in the browser), run this command once in the app directory: enyo pack --watch

To test in a browswer (Chrome is most like LuneOS) surf to dist/index.html

To rebuild and install on a LuneOS device attached via USB, run this command in the app directory: enyo pack && adb push dist /usr/palm/applications/org.webosports.app.messaging && adb shell systemctl restart luna-next; adb forward tcp:1122 tcp:1122 Then, in Chrome, surf to localhost:1122 to debug.

API exposed to other apps

Open an im or sms URL. Like mailto URLs, this does not require a PalmBus call.

luna-send -n 1 luna://com.palm.applicationManager/open '{"target": "im:fred@aim.com?body=Let%27s%20do%20this%20thing!"}'

luna-send -n 1 luna://com.palm.applicationManager/open '{"target": "sms:1-501-555-1212?body=Hey%20babe"}'

API exposed to chat threader

When an incoming message arrives, a banner message is displayed. Tapping on the banner should call (the equivalent of) this:

luna-send -n 1 luna://com.palm.applicationManager/launch '{"id":"org.webosports.app.messaging", "params": { "threadId": 123456 }}'

About

Messaging application for webOS ports

Resources

License

Unknown, Apache-2.0 licenses found

Licenses found

Unknown
COPYING
Apache-2.0
COPYING-Apache-2.0

Stars

Watchers

Forks

Packages

No packages published