Hello,
I started seeing errors in the console log after activating the Litespeed cache for the plugin Onesignal.
ServiceWorkerManager.js:341 [Service Worker Installation] Installing service worker failed SecurityError: Failed to register a ServiceWorker for scope ('https://www.domain.com/') with script ('https://www.domain.com/OneSignalSDKWorker.js?appId=xx'): The script resource is behind a redirect, which is disallowed.
tslib.es6.js:63 Uncaught (in promise) SecurityError: Failed to register a ServiceWorker for scope ('https://www.domain.com/') with script ('https://www.domain.com/OneSignalSDKWorker.js?appId=xx'): The script resource is behind a redirect, which is disallowed.
How to fix this?
]]>Warning: Attempt to read property "ID" on int in onesignal-admin.php on line 21
This is the line wp_localize_script('notice_script', 'ajax_object', array('ajax_url' => admin_url('admin-ajax.php'), 'post_id' => $post->ID));
But in some cases, $post
could be an int
hello, may I ask you why Onesignal replaces Woocommerce products icon in the backend? How to eliminate this?
]]>The plugin was working fine and has stopped sending notifications to subscribers, which has directly affected the traffic of our recurring audience who requested to receive a notification with each published post.
There is a message that says:
Warning: This plugin has not been tested on your current version of WordPress.
Perhaps that is where the error comes from, I hope they can fix or update it soon,
]]>We are trying to uninstall the plugin, but the notification bell is not being removed. How can we remove the notification bell from the site?
]]>How could Onesignal be implemented in a multisite wordpress installation so that subscriptions would be independent in each blog?
For example
https://www.edured2000.net
https://www.edured2000.net/abc
https://www.edured2000.net/xyz
…
Would it be possible to create several Onesignal accounts?
Thank you
Dear Service team,
OneSignal is a really great plugin with professional features!
The possibility to send push notifications while updating posts is a huge help.
However, not all posts are meant for everyone, hence, it would be most favorable if one had a choice to select between sending to all or to select one or more segments…
Thanks for considering my proposal.
Kindest regards
Michael
]]>Hi,
I’m seeing this :
OneSignal Push: could not load wp.data
Any idea why this is, please?
Thanks
I have the options selected:
“Use the post’s featured image for the notification icon” and “Use the post’s featured image for Chrome’s large notification image”
But neither of the two images are shown
]]>Hello,
i want to delay OneSignal’s Prompt to subscribe to messages by 10 Seconds. I’ve tried both of these codes but none of them work.
document.addEventListener('DOMContentLoaded', function() {
setTimeout(function() {
if (typeof OneSignal !== 'undefined') {
OneSignal.push(function() {
OneSignal.showSlidedownPrompt();
});
}
}, 10000);
});
document.addEventListener('DOMContentLoaded', function() {
setTimeout(function() {
OneSignal.push(function() {
OneSignal.showSlidedownPrompt();
});
}, 10000);
});
I also tried this code but it is “too far” as i only need a delay. I also quite don’t understand in the first place why you’ve added text to a delay code, i think that should be overlooked. Because i don’t want to change any text or function, i simply want to delay OneSignal
]]>We are looking for a product. Does Onesignal allow these features?
1) The visitor to the site can put an icon on their mobile.
2) Receive Push notifications without opening the site?
We read all the documentation but found no answers.
Thank you in advance.
Good evening,
I hope you can help, I have installed the onesignal plugin on wordpress and initially I was able to register and it showed in the onesignal dashboard. After I deleted the user from the dashboard I have never been to reregister since. The popup dosent even come up when clicking on the bell.
Although every time I do click on the bell, the below error (1st one) goes up in number at the rate of clicking the bell
The below are the two codes that are there on page load.
Failed to create user. Error "Cannot read properties of undefined (reading 'then')" TypeError: Cannot read properties of undefined (reading 'then')
at I.call (https://cdn.onesignal.com/sdks/OneSignalPageSDKES6.js?v=151605:1:56602)
at I.post (https://cdn.onesignal.com/sdks/OneSignalPageSDKES6.js?v=151605:1:55719)
at C. (https://cdn.onesignal.com/sdks/OneSignalPageSDKES6.js?v=151605:1:57679)
at Generator.next ()
at https://cdn.onesignal.com/sdks/OneSignalPageSDKES6.js?v=151605:1:883
at new Promise ()
at n (https://cdn.onesignal.com/sdks/OneSignalPageSDKES6.js?v=151605:1:660)
at C.createUser (https://cdn.onesignal.com/sdks/OneSignalPageSDKES6.js?v=151605:1:57582)
at Gt. (https://cdn.onesignal.com/sdks/OneSignalPageSDKES6.js?v=151605:1:192558)
at Generator.next ()
(anonymous) @ UpdateManager.js:92
a @ tslib.es6.js:63
Promise.then (async)
c @ tslib.es6.js:64
r @ tslib.es6.js:62
Promise.then (async)
c @ tslib.es6.js:64
(anonymous) @ tslib.es6.js:65
n @ tslib.es6.js:61
sendPlayerCreate @ UpdateManager.js:77
(anonymous) @ SubscriptionManager.js:121
r @ tslib.es6.js:62
Promise.then (async)
c @ tslib.es6.js:64
(anonymous) @ tslib.es6.js:65
n @ tslib.es6.js:61
registerSubscription @ SubscriptionManager.js:103
(anonymous) @ SubscriptionHelper.js:53
r @ tslib.es6.js:62
Promise.then (async)
c @ tslib.es6.js:64
(anonymous) @ tslib.es6.js:65
n @ tslib.es6.js:61
internalRegisterForPush @ SubscriptionHelper.js:20
(anonymous) @ SubscriptionHelper.js:18
(anonymous) @ tslib.es6.js:65
n @ tslib.es6.js:61
registerForPush @ SubscriptionHelper.js:16
(anonymous) @ InitHelper.js:375
r @ tslib.es6.js:62
Promise.then (async)
c @ tslib.es6.js:64
(anonymous) @ tslib.es6.js:65
n @ tslib.es6.js:61
handleAutoResubscribe @ InitHelper.js:370
(anonymous) @ InitHelper.js:76
r @ tslib.es6.js:62
Promise.then (async)
c @ tslib.es6.js:64
r @ tslib.es6.js:62
Promise.then (async)
c @ tslib.es6.js:64
(anonymous) @ tslib.es6.js:65
n @ tslib.es6.js:61
sessionInit @ InitHelper.js:48
(anonymous) @ InitHelper.js:38
r @ tslib.es6.js:62
Promise.then (async)
c @ tslib.es6.js:64
(anonymous) @ tslib.es6.js:65
n @ tslib.es6.js:61
internalInit @ InitHelper.js:27
(anonymous) @ OneSignal.js:206
r @ tslib.es6.js:62
Promise.then (async)
c @ tslib.es6.js:64
r @ tslib.es6.js:62
Promise.then (async)
c @ tslib.es6.js:64
(anonymous) @ tslib.es6.js:65
n @ tslib.es6.js:61
e @ OneSignal.js:164
(anonymous) @ OneSignal.js:209
(anonymous) @ tslib.es6.js:65
n @ tslib.es6.js:61
delayedInit @ OneSignal.js:160
(anonymous) @ OneSignal.js:158
r @ tslib.es6.js:62
Promise.then (async)
c @ tslib.es6.js:64
r @ tslib.es6.js:62
Promise.then (async)
c @ tslib.es6.js:64
(anonymous) @ tslib.es6.js:65
n @ tslib.es6.js:61
init @ OneSignal.js:134
(anonymous) @ VM6479:32
processItem @ ProcessOneSignalPushCalls.js:5
push @ OneSignal.js:617
processAsArray @ ReplayCallsOnOneSignal.js:19
processAsES6Stub @ ReplayCallsOnOneSignal.js:37
doReplay @ ReplayCallsOnOneSignal.js:10
(anonymous) @ pageSdkInit.js:21
(anonymous) @ pageSdkInit.js:25
i @ bootstrap:19
(anonymous) @ bootstrap:68
(anonymous) @ bootstrap:68
Show 44 more frames
Show less
SlidedownManager.js:340 There was an error showing the OneSignal Slidedown: TypeError: Cannot read properties of undefined (reading 'json')
at fe. (MainHelper.js:77:37)
at Generator.next ()
at r (tslib.es6.js:62:42)
I am really at a loss about this. Any ideas on what to try?
Just for reference I have tried the general issues from therehttps://documentation.onesignal.com/docs/troubleshooting-wordpress-web-push#wordpress-cdn–cache-plugin-support
Thank you in advance
]]>Hello. I would like to disable all prompts from my site, but continue sending push notifications. As you can see from the image, I have all prompts disabled in the settings. However, the slide prompt still shows up. I have cleared all caches, but it still will not go away. Any help would be appreciated.
]]>how to hide bell on my website??? if i look at my site from android phone ther bell icon showing up all time how to hide it????
]]>Hi
Not sure why but the notifications box does not popup in the browser?
Browser settings are ‘unblocked’ on apps etc
I’m wondering if this is a cache issue?
Hi,
Just giving this a tryout ..
No ‘Signup Email Verification’ email is received with no option to ‘resend’?
]]>after i publish post i get push notification but if i ad some tag or update my post o get more push notification but i dont want it!! i just want to push notification on new publish post how to do it????
]]>Hi, we have found this code at onesignal website, for delaying the promp notification at wordpress, but doesn′t explain where should this code be inserted. We have tryed to inser it at header, but then front-website gives error. Could you please explain how to place this code (?where?).
In the explanation at onesignal website (code explamples), doesn′t explains it:
https://documentation.onesignal.com/docs/wordpress-customizations#how-do-i-delay-prompting-users
We are facing terrible problems, as the PRIVACY POLICY shows up at mobiles, but at same time the onesignal promp notification and doesn′t let accept any of them, because they they overlap, so clients leave the site.
Please help needed urgently, as we can go foward with our business.
// Delay Only Example
setTimeout(function(){
console.log("about to initialize OneSignal");
window._oneSignalInitOptions.promptOptions = {
slidedown: {
prompts: [
{
type: "push",
autoPrompt: true,
text: {
/* actionMessage limited to 90 characters */
actionMessage: "Your Custom Action Message",
/* acceptButton limited to 15 characters */
acceptButton: "Yes",
/* cancelButton limited to 15 characters */
cancelButton: "No",
},
delay: {
/* seconds to wait for display */
timeDelay: 1,
/* # pageviews for prompt to display */
pageViews: 1,
}
}
]
}
}
window.OneSignal = window.OneSignal || [];
window.OneSignal.push(function() {
window.OneSignal.init(window._oneSignalInitOptions);
});
}, 3000);
]]>
Hello, after some update stopped working notification bell disappearing after user subscribes. It is still visible. I do not know how to solve this problem.
]]>With WordPress 6.3 change of wp_register_script and $args param.
wp_register_script('remote_sdk', 'https://cdn.onesignal.com/sdks/OneSignalSDK.js#asyncload', array(), false, true);
Must be change to
wp_register_script('remote_sdk', 'https://cdn.onesignal.com/sdks/OneSignalSDK.js', array(), false, ['in_footer' => true, 'strategy' => 'async']);
because with old version the script tag fails with 404 error, because composed script tag was wrong
src="https://cdn.onesignal.com/sdks/OneSignalSDK.js' async='async"
]]>
Dear,
I have installed your plugin on a WordPress multisite. I enabled it for a specific site. My issue is that only network administrators can access this plugin. The users which are site administrator do not see it. Can this be changed?
Thx.
]]>When a new post is created or when updated, the notification is show twice and the first one open the app and second one opens the website. However the first notification doesnt have any title
Can you please help ?
https://prnt.sc/KlZYsNOfTp5y
I am using the plugin for quite a while on a couple of websites but now I get this error on all of them:
OneSignal Push:?There was a problem sending your notification.
No notification is sent. Is there a problem in general or is it just me?
Can I check more details about the error somewhere in WordPress?
]]>Hello, just wanted to ask if there is a filter to disable the services when running outside of a production environment.
Note: we use wp_get_environment_type to determine out environments in our apps.
]]>Hi there, can we also push newly published ‘pages’ as well as ‘posts’? There seems to be no option to do so. If not, would this be possible with some modification of the code? Thanks!
]]>On PageSpeed Insights, my Best Practices score is 95. When I activate the OneSignal Push Notifications plugin (version 2.4.0), it drops to 73. The main reason given is “Uses deprecated APIs – 1 warning found. / Deprecated APIs will eventually be removed from the browser.”
By deactivating plugins and retesting my site on PageSpeed, the culprit is OneSignal.
Do you have any idea what the issue is?
If so, can it be fixed at my end?
]]>I have a small problem with the plugin as when I do a page speed scan my recommendation score goes down due to an outdated API, but when I disable the plugin this warning goes away and gives me a score of 100%.
Is there a way to resolve this?
]]>The feature “Additional Custom Post Types for Automatic Notifications Created From Plugins” is not work for Custom Post Types created by Toolset Plugins (https://toolset.com/). I had entered list of custom post type names, but the checkbox ‘Send notification on post publish/update’ not automatically checked.
]]>Hello. Notifications for subscribed users are not being sent to mobile browsers (tested on Android), despite the pop-up for subscribing. For the web it enrolls and sends normally. Thanks
]]>OneSignal Push: There was a 400 error sending your notification.
when installing this this error happens, what is the reason?
]]>