OneSignal-Website-SDK icon indicating copy to clipboard operation
OneSignal-Website-SDK copied to clipboard

Blocked in Egypt

Open Kaabi opened this issue 4 years ago • 3 comments

Description:

as you may hear already Onesignal base domain is been blocked for 3 years or more now from many ISPs in Egypt, but any subdomains such as api.onesignal.com or app.onesignal.com are working fine.

but when I implemented your Web push notification SDK I see that most requests were made on api.onesignal.com but some requests are directed to the onesignal.com base domain which is a block.

image

Steps to Reproduce Issue:

  1. Open any web page that has your SDK from Egypt
  2. voila you will receive the error of connection error

Anything else:

this would be fixed if you completely changed all your SDK codes to be using https://api.onesignal.com/api/v1/sync/...... instead of https://onesignal.com/api/v1/sync/.............

Kaabi avatar Jan 09 '22 01:01 Kaabi

Duplicate of https://github.com/OneSignal/OneSignal-iOS-SDK/issues/554

rgomezp avatar Feb 25 '22 19:02 rgomezp

Hello @rgomezp this is not a duplicate because the web sdk here https://cdn.onesignal.com/sdks/OneSignalSDKWorker.js still using the base url https://onesignal.com/api/v1/ but it should be updated to https://api.onesignal.com/api/v1/sync/ can we get this resolved in the web too ?

mostafaamr137 avatar Nov 03 '22 13:11 mostafaamr137

Hello @rgomezp please take in consideration that the getOneSignalResourceUrlPath function in OneSignalPageSDKES6.js file needs to be changed to https://assets.onesignal.com, thanks.

mostafaamr137 avatar Nov 14 '22 09:11 mostafaamr137