Hi there,
Going to your website, I’m met with this error in your console:
Uncaught (in promise) f: OneSignal: This web push config can only be used on https://www.swarajyadigital.com. Your current origin is https://swarajyadigital.com.
at Function.checkRestrictedOrigin (https://cdn.onesignal.com/sdks/OneSignalPageSDKES6.js?v=151512:1:242683)
at Function.<anonymous> (https://cdn.onesignal.com/sdks/OneSignalPageSDKES6.js?v=151512:1:242243)
at Generator.next (<anonymous>)
at r (https://cdn.onesignal.com/sdks/OneSignalPageSDKES6.js?v=151512:1:716)
You will need to create a new OneSignal app that is configured for “https://swarajyadigital.com/” without the “www.”
Changing domain, even changing http to https or www to non-www, will require a new OneSignal App Id because of the same origin policy for Web Push subscription. Browsers do not allow subscribers to be transferred to a new origin.
We recommend you continue sending push to subscribers on the current OneSignal App and setup a new OneSignal app for the updated site origin. A common practice is to setup a temporary “Subscribe” page which explains the old site is moving to this new site and ask to subscribe to this new site. We see more success when some kind of incentive is provided like a discount or free trial.
More details and recommendations in our Web Push Setup FAQ: https://documentation.onesignal.com/docs/web-push-setup-faq#how-do-i-change-my-domain
Please let us know if you have any additional questions by email our support team at [email protected]
Thanks,
Dom
-
This reply was modified 2 years, 10 months ago by Dom.
-
This reply was modified 2 years, 10 months ago by Dom.