OneSignal – Free Web Push Notifications - Version 1.0.3

Version Description

Fixed compatibility issue with PHP versions older than 5.3.0 For HTTPS sites a modal dialog is shown before the native Chrome Notification permission prompt.

Download this release

Release Info

Developer OneSignal
Plugin Icon 128x128 OneSignal – Free Web Push Notifications
Version 1.0.3
Comparing to
See all releases

Code changes from version 1.0.2 to 1.0.3

Files changed (4) hide show
  1. onesignal-public.php +1 -1
  2. onesignal-widget.php +0 -3
  3. onesignal.php +1 -1
  4. readme.txt +5 -1
onesignal-public.php CHANGED
@@ -52,7 +52,7 @@ class OneSignal_Public {
52
  OneSignal.push(initOneSignal);
53
 
54
  var oneSignal_elements = document.getElementsByClassName("OneSignal-prompt");
55
- var oneSignalLinkClickHandler = function(event) { OneSignal.push(['registerForPushNotifications']); event.preventDefault(); };
56
  for(var i = 0; i < oneSignal_elements.length; i++)
57
  oneSignal_elements[i].addEventListener('click', oneSignalLinkClickHandler, false);
58
  });
52
  OneSignal.push(initOneSignal);
53
 
54
  var oneSignal_elements = document.getElementsByClassName("OneSignal-prompt");
55
+ var oneSignalLinkClickHandler = function(event) { OneSignal.push(['registerForPushNotifications', {modalPrompt: true}]); event.preventDefault(); };
56
  for(var i = 0; i < oneSignal_elements.length; i++)
57
  oneSignal_elements[i].addEventListener('click', oneSignalLinkClickHandler, false);
58
  });
onesignal-widget.php CHANGED
@@ -42,8 +42,5 @@ class OneSignalWidget extends WP_Widget {
42
  }
43
 
44
  add_action('widgets_init', create_function('', 'return register_widget("OneSignalWidget");'));
45
- add_action( 'widgets_init', function() {
46
- register_widget( 'OneSignalWidget' );
47
- });
48
 
49
  ?>
42
  }
43
 
44
  add_action('widgets_init', create_function('', 'return register_widget("OneSignalWidget");'));
 
 
 
45
 
46
  ?>
onesignal.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: OneSignal Push Notifications
4
  * Plugin URI: https://onesignal.com/
5
  * Description:
6
- * Version: 1.0.2
7
  * Author: OneSignal
8
  * Author URI: https://onesignal.com
9
  * License: MIT
3
  * Plugin Name: OneSignal Push Notifications
4
  * Plugin URI: https://onesignal.com/
5
  * Description:
6
+ * Version: 1.0.3
7
  * Author: OneSignal
8
  * Author URI: https://onesignal.com
9
  * License: MIT
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://onesignal.com
4
  Tags: chrome, push, push notifications, safari, chrome push, safari push, notifications, web push, notification, notify, mavericks, firefox push, android, android push, android notifications, mobile notifications, mobile, desktop notifications, gcm, push messages, onesignal
5
  Requires at least: 3.8
6
  Tested up to: 4.2.1
7
- Stable tag: 1.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -46,6 +46,10 @@ Features:
46
 
47
  == Changelog ==
48
 
 
 
 
 
49
  = 1.0.2 =
50
  Fixed bug with OneSignal not getting initialized in some cases.
51
  Now omits extra unneeded manifest link from the head tag when using HTTP.
4
  Tags: chrome, push, push notifications, safari, chrome push, safari push, notifications, web push, notification, notify, mavericks, firefox push, android, android push, android notifications, mobile notifications, mobile, desktop notifications, gcm, push messages, onesignal
5
  Requires at least: 3.8
6
  Tested up to: 4.2.1
7
+ Stable tag: 1.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
46
 
47
  == Changelog ==
48
 
49
+ = 1.0.3 =
50
+ Fixed compatibility issue with PHP versions older than 5.3.0
51
+ For HTTPS sites a modal dialog is shown before the native Chrome Notification permission prompt.
52
+
53
  = 1.0.2 =
54
  Fixed bug with OneSignal not getting initialized in some cases.
55
  Now omits extra unneeded manifest link from the head tag when using HTTP.