TruePush integration with Other Web Services

Follow step 1 only if you are running an HTTPS website otherwise start from step 2.

Step 1:

The integration of TruePush with your website requires you to place TruePush script in the body section and sw.js in the root folder of the website, both are present on the app. The instruction to upload the sw.js file usually depends on your hosting provider.

  • FTP or SFTP into your server and navigate to where your site is installed.
  • Download the sw.js file from Code Integration page.

  • Paste/Upload the file directly into the root of your web service Cpanel.

How to ensure if my sw.js file is installed correctly?

You can check if you have installed sw.js file correctly by going to your URL page and adding sw.js as the end like yourwebsite.com/sw.js.

 

Step 2:

SDK Code under Code Integration, follow the steps given below:

Whatever web service you choose, you have to place the SDK Code inside the main page body tag.

To see if the code is placed you can go to your page source in the browser and find “truepushSDK” if you can find your SDK code in this the code is placed in your website and you can start sending your notifications.

Also, Read

TruePush integration with Squarespace Website

Way to Add Test User to your TruePush Dashboard

Follow our Social Media pages.

Facebook
LinkedIn
Twitter

Website: www.truepush.com
Email: help@truepush.com