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" />

/cordova-plugin-firebase-appindexing/

    Package Sidebar

    Install

    npm i cordova-plugin-firebase-appindexing

    Weekly Downloads

    3

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • prasannasks