You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* One Single installs, warn users to add SuperPWA manifest as custom manifest in OneSignal settings.
175
+
* One multisites, warn users that SuperPWA and OneSignal cannot work together.
176
+
*
177
+
* @since 1.8.1
178
+
*/
179
+
functionsuperpwa_onesignal_admin_notices() {
180
+
181
+
// Notices only for admins.
182
+
if ( ! current_user_can( 'manage_options' ) ) {
183
+
return;
184
+
}
185
+
186
+
// Incompatibility notice for Multisites
187
+
if ( is_multisite() ) {
188
+
echo'<div class="notice notice-warning"><p>' .
189
+
sprintf(
190
+
__( '<strong>SuperPWA</strong> is not compatible with OneSignal on multisites yet. Disable one of these plugins until the compatibility is available.<br>Please refer to the <a href="%s" target="_blank">OneSignal integration documentation</a> for more info. ', 'super-progressive-web-apps' ),
__( '<strong>Action Required to integrate SuperPWA with OneSignal:</strong><br>1. Go to <a href="%s" target="_blank">OneSignal Configuration > Scroll down to Advanced Settings →</a><br>2. Enable <strong>Use my own manifest.json</strong><br>3. Set <code>%s</code>as <strong>Custom manifest.json URL</strong> and Save Settings.<br>Please refer the <a href="%s" target="_blank">OneSignal integration documentation</a> for more info. ', 'super-progressive-web-apps' ),
Copy file name to clipboardExpand all lines: admin/basic-setup.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ function superpwa_admin_notices() {
68
68
// Admin notice on plugin activation
69
69
if ( get_transient( 'superpwa_admin_notice_activation' ) ) {
70
70
71
-
$superpwa_is_ready = is_ssl() && superpwa_get_contents( superpwa_manifest( 'abs' ) ) && superpwa_get_contents( superpwa_sw( 'abs' ) ) ? 'Your app is ready with the default settings. ' : '';
71
+
$superpwa_is_ready = superpwa_is_pwa_ready() ? 'Your app is ready with the default settings. ' : '';
72
72
73
73
echo'<div class="updated notice is-dismissible"><p>' . sprintf( __( 'Thank you for installing <strong>Super Progressive Web Apps!</strong> '. $superpwa_is_ready .'<a href="%s">Customize your app →</a>', 'super-progressive-web-apps' ), admin_url( 'admin.php?page=superpwa' ) ) . '</p></div>';
74
74
@@ -102,7 +102,7 @@ function superpwa_network_admin_notices() {
102
102
// Network admin notice on multisite network activation
103
103
if ( get_transient( 'superpwa_network_admin_notice_activation' ) ) {
104
104
105
-
$superpwa_is_ready = is_ssl() && superpwa_get_contents( superpwa_manifest( 'abs' ) ) && superpwa_get_contents( superpwa_sw( 'abs' ) ) ? 'Your app is ready on the main website with the default settings. ' : '';
105
+
$superpwa_is_ready = superpwa_is_pwa_ready() ? 'Your app is ready on the main website with the default settings. ' : '';
106
106
107
107
echo'<div class="updated notice is-dismissible"><p>' . sprintf( __( 'Thank you for installing <strong>Super Progressive Web Apps!</strong> '. $superpwa_is_ready .'<a href="%s">Customize your app →</a><br/>Note: manifest and service worker for the individual websites will be generated on the first visit to the respective WordPress admin.', 'super-progressive-web-apps' ), admin_url( 'admin.php?page=superpwa' ) ) . '</p></div>';
108
108
@@ -113,7 +113,7 @@ function superpwa_network_admin_notices() {
113
113
// Network admin notice on plugin upgrade
114
114
if ( get_transient( 'superpwa_admin_notice_upgrade_complete' ) ) {
115
115
116
-
echo'<div class="updated notice is-dismissible"><p>' . sprintf( __( '<strong>SuperPWA</strong>: Successfully updated to version %s. Thank you! <a href="%s" target="_blank">Discover new features and read the story →</a>', 'super-progressive-web-apps' ), SUPERPWA_VERSION, 'https://superpwa.com/category/release-notes/latest/?utm_source=superpwa-plugin&utm_medium=update-success-notice-mu' ) . '</p></div>';
116
+
echo'<div class="updated notice is-dismissible"><p>' . sprintf( __( '<strong>SuperPWA</strong>: Successfully updated to version %s. Thank you! <a href="%s" target="_blank">Discover new features and read the story →</a>', 'super-progressive-web-apps' ), SUPERPWA_VERSION, 'https://superpwa.com/category/release-notes/latest/?utm_source=superpwa-plugin&utm_medium=update-success-notice-multisite' ) . '</p></div>';
* Enhancement: Added an admin notice with [instructions for OneSignal integration](https://superpwa.com/doc/setup-onesignal-with-superpwa/?utm_source=wordpress.org&utm_medium=changelog).
182
+
* Enhancement: Updated console log message for URLs excluded from cache for better clarity.
0 commit comments