Version Description
- Firefox support.
- OneSignal library initialization now occurs regardless of whether the window.onload event has yet to be fired or has already fired.
Download this release
Release Info
Developer | OneSignal |
Plugin | OneSignal – Free Web Push Notifications |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- onesignal-public.php +11 -3
- onesignal.php +1 -1
- readme.txt +9 -5
onesignal-public.php
CHANGED
@@ -65,14 +65,22 @@ class OneSignal_Public {
|
|
65 |
OneSignal.init(oneSignal_options);
|
66 |
}
|
67 |
|
68 |
-
|
69 |
OneSignal.push(initOneSignal);
|
70 |
-
|
71 |
var oneSignal_elements = document.getElementsByClassName("OneSignal-prompt");
|
72 |
var oneSignalLinkClickHandler = function(event) { OneSignal.push(['registerForPushNotifications', {modalPrompt: true}]); event.preventDefault(); };
|
73 |
for(var i = 0; i < oneSignal_elements.length; i++)
|
74 |
oneSignal_elements[i].addEventListener('click', oneSignalLinkClickHandler, false);
|
75 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
</script>
|
77 |
|
78 |
<?php
|
65 |
OneSignal.init(oneSignal_options);
|
66 |
}
|
67 |
|
68 |
+
function documentInitOneSignal() {
|
69 |
OneSignal.push(initOneSignal);
|
|
|
70 |
var oneSignal_elements = document.getElementsByClassName("OneSignal-prompt");
|
71 |
var oneSignalLinkClickHandler = function(event) { OneSignal.push(['registerForPushNotifications', {modalPrompt: true}]); event.preventDefault(); };
|
72 |
for(var i = 0; i < oneSignal_elements.length; i++)
|
73 |
oneSignal_elements[i].addEventListener('click', oneSignalLinkClickHandler, false);
|
74 |
+
}
|
75 |
+
|
76 |
+
if (document.readyState === 'complete') {
|
77 |
+
documentInitOneSignal();
|
78 |
+
}
|
79 |
+
else {
|
80 |
+
window.addEventListener("load", function(event){
|
81 |
+
documentInitOneSignal();
|
82 |
+
});
|
83 |
+
}
|
84 |
</script>
|
85 |
|
86 |
<?php
|
onesignal.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: OneSignal Push Notifications
|
4 |
* Plugin URI: https://onesignal.com/
|
5 |
* Description:
|
6 |
-
* Version: 1.1.
|
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.1.1
|
7 |
* Author: OneSignal
|
8 |
* Author URI: https://onesignal.com
|
9 |
* License: MIT
|
readme.txt
CHANGED
@@ -4,17 +4,17 @@ Donate link: https://onesignal.com
|
|
4 |
Tags: chrome, safari, 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.3.1
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
Increase engagement and drive more repeat traffic to your
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
[OneSignal](https://onesignal.com) is a complete push notification solution for WordPress blogs and sites, trusted by over
|
16 |
|
17 |
-
After just a few seconds of set-up, your visitors will be able to opt-in to receive desktop push notifications when you publish a new post. OneSignal
|
18 |
|
19 |
OneSignal makes it easy to configure when to send notifications, target notifications to specific users, and to customize the Opt-In process for your visitors.
|
20 |
|
@@ -22,7 +22,7 @@ Best of all, WordPress users that use OneSignal will get a FREE lifetime account
|
|
22 |
|
23 |
Features:
|
24 |
|
25 |
-
* Supports Chrome(Desktop & Android)
|
26 |
|
27 |
* **Automatic Notifications** - Send notifications to followers every time you publish a new post. Or set up a reminder that gets automatically sent to them if they haven’t visited for a few days.
|
28 |
|
@@ -45,6 +45,10 @@ Features:
|
|
45 |
3. Follow the instructions on the new OneSignal Wordpress menu option to get started.
|
46 |
|
47 |
== Changelog ==
|
|
|
|
|
|
|
|
|
48 |
= 1.1.0 =
|
49 |
- Added Safari Mac OSX support.
|
50 |
|
4 |
Tags: chrome, safari, 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.3.1
|
7 |
+
Stable tag: 1.1.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Increase engagement and drive more repeat traffic to your site with OneSignal push notifications! Supports Chrome, Safari, & Firefox (Alpha)
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
[OneSignal](https://onesignal.com) is the first push notification service to support all 3 web browsers. We offer a complete push notification solution for WordPress blogs and sites, trusted by over 7,000 developers and marketers including some of the largest brands and websites in the world.
|
16 |
|
17 |
+
After just a few seconds of set-up, your visitors will be able to opt-in to receive desktop push notifications when you publish a new post. OneSignal lets you send notifications to your visitors even after they’ve left your website.
|
18 |
|
19 |
OneSignal makes it easy to configure when to send notifications, target notifications to specific users, and to customize the Opt-In process for your visitors.
|
20 |
|
22 |
|
23 |
Features:
|
24 |
|
25 |
+
* Supports Chrome(Desktop & Android), Safari(Mac OSX), and Firefox (Desktop) on both HTTP and HTTPS sites.
|
26 |
|
27 |
* **Automatic Notifications** - Send notifications to followers every time you publish a new post. Or set up a reminder that gets automatically sent to them if they haven’t visited for a few days.
|
28 |
|
45 |
3. Follow the instructions on the new OneSignal Wordpress menu option to get started.
|
46 |
|
47 |
== Changelog ==
|
48 |
+
= 1.1.1 =
|
49 |
+
- Firefox support.
|
50 |
+
- OneSignal library initialization now occurs regardless of whether the window.onload event has yet to be fired or has already fired.
|
51 |
+
|
52 |
= 1.1.0 =
|
53 |
- Added Safari Mac OSX support.
|
54 |
|