Skip to content

learnyst/cordova-plugin-firebase-appindexing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published