API integration- for AMP

Truepush provides API integration for AMP. Follow the steps below for integration: 

AMP, an abbreviation of Accelerated Mobile Pages, is a stripe down version of HTML. It essentially, makes the mobile pages load faster and add to the positive reading experience. 

Note: If you are a new user – Make sure to include the sw.js file(Step 1) that is provided in the Website tab. Then follow the steps given here.

If you are an existing user – make sure that you are not using Truepush SDK initialization in AMP Pages. When you keep Website SDK code to initialize in AMP pages, AMP cache like Google will no longer recognize them as AMP Pages.

STEP 1

Add the following script within your AMP page’s <head> section.

STEP 2

Download the files below and add them to the root directory (/) of your website.


STEP 3

Add the following code within your AMP page’s < body> section.


STEP 4

Add the following button style within your AMP page’s <head> section.


STEP 5

Add the following button within your AMP page’s <body> section.

________________________________________________________________________

Also, read:

API Integration- For Android Studio
Generate a Firebase Server Key
Creating a new platform for the existing Project
Add custom tags and callbacks to android apps

Follow us on our Social Media pages.
Facebook|LinkedIn|Twitter

Review us on TrustRadius.

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

Image source- Freepik
Credits- <a href=”https://www.freepik.com/free-photos-vectors/technology”>Technology vector created by rawpixel.com – www.freepik.com</a>