i want to use cordova-plugin-firebase-realtime-database because this provide the native sdk and setDatabasePersistent to write data to the disk
iwant to know how to use it in ionic 2 ?
how to import this plugin with typescript
how to retrive data array and objects with it in type script
and the docs say that i should manully add this to phonegab build
buildscript {
…
dependencies {
…
classpath ‘com.google.gms:google-services:3.0.0’
}
}
should i add it in ionic 2 too,
and after install the plugin the serve say that FirebaseDatabasePlugin is not defined how to avoid that ?