OneSignal / react-onesignal

React OneSignal Module: Make it easy to integrate OneSignal with your React App!
Other
73 stars 26 forks source link

Either blocked by client or incorrect use of the react hook #30

Closed proton1k closed 3 years ago

proton1k commented 3 years ago

Hi,

So what is the "best practice" in using the react-onesignal module? I see people trying to initialize (here or here and on stackoverflow) the library, but no luck with ordinary ways. Is it expected to use something like <Helmet> or initialize in another way?

If one follows instructions on the documentation, it throws an error:

oneSignal.ts:150 GET https://cdn.onesignal.com/sdks/OneSignalSDK.js
net::ERR_BLOCKED_BY_CLIENT

Can you please elaborate what is the minimal "correct" way of initialization?

proton1k commented 3 years ago

It was related to uBlock ad-blocker extension. For some reason this is the only one ad-blocker which has the cdn.onesignal.com URL in it's blacklist. Some details here.