Changeset 1242076
- Timestamp:
- 09/10/2015 03:29:09 AM (10 years ago)
- Location:
- roost-for-bloggers
- Files:
-
- 31 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
roost-for-bloggers/trunk/includes/chrome/roost_worker_tmp.js
r1230735 r1242076 2 2 3 3 var _roostSW = { 4 version: 1,4 version: 2, 5 5 logging: true, 6 6 appKey: "ROOST_APP_KEY", … … 21 21 if (_roostSW.logging) console.log("push listener", evt); 22 22 evt.waitUntil(self.registration.pushManager.getSubscription().then(function(subscription) { 23 return fetch(_roostSW.host + "/api/browser/notifications?version=" + _roostSW.version + "&appKey=" + _roostSW.appKey + "&deviceID=" + subscription.subscriptionId).then(function(response) { 23 var regID = null; 24 if ('subscriptionId' in subscription) { 25 regID = subscription.subscriptionId; 26 } else { 27 //in Chrome 44+ and other SW browsers, reg ID is part of endpoint, send the whole thing and let the server figure it out. 28 regID = subscription.endpoint; 29 } 30 return fetch(_roostSW.host + "/api/browser/notifications?version=" + _roostSW.version + "&appKey=" + _roostSW.appKey + "&deviceID=" + encodeURIComponent(regID)).then(function(response) { 24 31 return response.json().then(function(json) { 25 32 if (_roostSW.logging) console.log(json); … … 29 36 if (_roostSW.logging) console.log("Showing notification: " + note.body); 30 37 var url = "ROOST_HTML_PATH?noteID=" + note.roost_note_id + "&sendID=" + note.roost_send_id + "&body=" + encodeURIComponent(note.body); 31 promises.push(showNotification(note. title, note.body, url, _roostSW.appKey));38 promises.push(showNotification(note.roost_note_id, note.title, note.body, url, _roostSW.appKey)); 32 39 } 33 40 return Promise.all(promises); … … 70 77 71 78 //Utility function to actually show the notification. 72 function showNotification( title, body, url, appKey) {79 function showNotification(noteID, title, body, url, appKey) { 73 80 var options = { 74 81 body: body, 75 82 tag: "roost", 76 icon: _roostSW.host + '/api/browser/logo?size=100&direct=true&appKey=' + _roostSW.appKey + '& url=' + encodeURIComponent(url)83 icon: _roostSW.host + '/api/browser/logo?size=100&direct=true&appKey=' + _roostSW.appKey + '¬eID='+ noteID + '&url=' + encodeURIComponent(url) 77 84 }; 78 85 return self.registration.showNotification(title, options); -
roost-for-bloggers/trunk/includes/class-roost-core.php
r1231259 r1242076 9 9 private static $roost; 10 10 11 public static $roost_version = '2.3. 5';11 public static $roost_version = '2.3.6'; 12 12 13 13 public static $database_version = 20150824; -
roost-for-bloggers/trunk/readme.txt
r1231259 r1242076 4 4 Requires at least: 3.8 5 5 Tested up to: 4.3 6 Stable tag: 2.3. 56 Stable tag: 2.3.6 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 122 122 123 123 == Changelog == 124 = 2.3.6 = 125 * MAJOR - Bugfix - Must upgrade to support new releases of Chrome (m45+) 126 124 127 = 2.3.5 = 125 128 * Compatible with PHP < v5.3 … … 268 271 269 272 == Upgrade Notice == 273 = 2.3.6 = 274 * MAJOR - Bugfix - Must upgrade to support new releases of Chrome (m45+) 275 270 276 = 2.3.5 = 271 277 * Support for older versions of PHP ( Compatible with PHP < v5.3 ) -
roost-for-bloggers/trunk/roost.php
r1231259 r1242076 4 4 * Plugin URI: https://goroost.com/ 5 5 * Description: Drive traffic to your website with Roost Notifications -- which includes Chrome and Safari. 6 * Version: 2.3. 56 * Version: 2.3.6 7 7 * Author: Roost 8 8 * Author URI: https://goroost.com
Note: See TracChangeset
for help on using the changeset viewer.