Question:
How to check the Web SDK initialization parameteres if the code is hidden
Answer:
If you need to debug the website, but you could not locate the code (like the one in p. 4.3 of the guide). (the steps are valid for Chrome browser).
First of all, you should go to the "Application" tab of the inspect menu:
After that, you should go to IndexedDB -> PUSHWOOSH_SDK_STORE -> keyValue:
Here you will be able to check the Initialization parameters, version of SDK and SW and etc.
Please note that the SDK should be initialized in order to get those parameters. So, if the SDK is not working on Safari, but for Chrome everything works fine, you could Could use Chrome to check whether the safariWebsitePushID is correct, for example.
The other thing you can perform (if a user says that he inserted this parameter, but it is still not displayd in the init params) is some Web Kung-fcking-fu. This will work only if the istall from npm. You can go to the website source by placing in the address bar the view-source:websitename.com (like view-source:https://www.ipla.tv/start). After that search the <script. You should be able to locate some js files. Open them and look for Pushwoosh. You should be able to locate something like:
PUSHWOOSH:{APPLICATION_CODE:"XXXXX-XXXXX",AUTO_SUBSCRIBE:!0,LOG_LEVEL:E.NONE,USER_ID:null}
Comments
0 comments
Please sign in to leave a comment.