The Mer Wiki now uses your Mer user account and password (create account on https://bugs.merproject.org/)
Middleware/PushNotifications
(initial content) |
|||
Line 25: | Line 25: | ||
Adding repo to device: ssu ar tbr-mqtt http://repo.merproject.org/obs/home:/tbr:/mqtt/sailfish_latest_armv7hl/ | Adding repo to device: ssu ar tbr-mqtt http://repo.merproject.org/obs/home:/tbr:/mqtt/sailfish_latest_armv7hl/ | ||
+ | |||
+ | |||
+ | To explore MQTT based push notifications on Sailfish you can use this irssi script to send you all sorts of notifications. | ||
+ | https://github.com/dm8tbr/irssi-mqtt-notify | ||
+ | There is also some client side code in Python to convert the push message to a Sailfish platform notification. | ||
Revision as of 16:07, 26 July 2014
Target audience
This page is targeted foremost at platform developers (Vendors) that want to establish and integrate a push notification infrastructure for their project, secondly at developers who want to use/receive push notifications in their applications.
Nemo and Sailfish serve as reference users/targets for this.
Intermediate / Test Platform
TBR has set up a Mosquitto/MQTT based serice that can be used for experiments and also as an interim production environment for apps in need of push notifications right now.
Host: devaamo.fi
Port: 1883 (regular), 1884 (limited testing)
Topics:
- sailfish/broadcast/… (readable by every client, also without authentication)
- sailfish/username/… (only accessible to authenticated clients)
- $SYS/… (server status information)
Credentials can be requested from tbr on IRC by priv-msg.
Client libraries are available currently from a personal OBS repository: https://build.merproject.org/project/show/home:tbr:mqtt
Direct repo URL for Sailfish packages: http://repo.merproject.org/obs/home:/tbr:/mqtt/sailfish_latest_armv7hl/
Adding repo to device: ssu ar tbr-mqtt http://repo.merproject.org/obs/home:/tbr:/mqtt/sailfish_latest_armv7hl/
To explore MQTT based push notifications on Sailfish you can use this irssi script to send you all sorts of notifications.
https://github.com/dm8tbr/irssi-mqtt-notify
There is also some client side code in Python to convert the push message to a Sailfish platform notification.
Platform Evolution
Architecture and features of a future service are under discussion on Freenode IRC: #sailfishos-push