npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

cordova-plugin-firebase-appindexing

1.0.1 • Public • Published

cordova-plugin-firebase-appindexing

Installation

cordova plugin add cordova-plugin-firebase-appindexing

Usage

1 . IMPORTANT Ensure you have deeplinking in your application. If not kindly use https://github.com/nordnet/cordova-universal-links-plugin

2

i.   Create a firebase account 
ii.  Add your android app to firebase account
iii. Download google-services.json from firebase website and save in your cordova-app base folder

3 Setup Appindexing

Initialise :

AppIndexing.initialize(function success(success){ /* success code */ }, function failure(failure){ /*failure code*/ }, 'http://example.com'); 

Start View :

AppIndexing.startView(function success(success){ /* success code */ }, function failure(failure){ /*failure code*/ }, 'title of the view ', 'website_path');

do not give full URL only path

End View :

AppIndexing.endView(function success(success){ /* success code */ }, function failure(failure){ /*failure code*/ }, 'title of the view ', 'website_path');

do not give full URL only path

If cordova-plugin-firebase installed. Kindly comment from plugin.xml file

<hook src="scripts/after_prepare.js" type="after_prepare" />

install

npm i cordova-plugin-firebase-appindexing

Downloadsweekly downloads

1

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability