cordova-plugin-firebase icon indicating copy to clipboard operation
cordova-plugin-firebase copied to clipboard

Add ML Kit support

Open rathodkaran07 opened this issue 7 years ago • 8 comments

Yesterday at Google I/O a new feature was announced for Firebase: ML Kit. Can we have that support for this plugin?

rathodkaran07 avatar May 10 '18 14:05 rathodkaran07

That would be really awesome, if someone can enable these for cordova...

sangeetjass avatar May 11 '18 06:05 sangeetjass

That will be Great.

cissemy avatar May 12 '18 21:05 cissemy

It will be great to have ML Kit easily integrated with Cordova App. My team is experimenting with it.

badesemowo avatar Jun 02 '18 21:06 badesemowo

I'm not criticizing Google, but...firebase had a bad reputation in my eye with the fms related stuff, so i just created my own solution. I have used mobile vision api before, now it's a set back to rewrite everything, and the CameraSource class hasn't been even implemented, just i have seen in the quickstart-android samples, so it's tons of code, what i need to refactor from Google to make it usable. It's not fun anymore.

I think i'm just not using any barcode scanning. Google Maps Api in july 16 needs card activation even if you are using the free features only. So i think relying on Google products, whatever it's i'm not sure that it worth, as it kept changing. You just create a cordova plugin, and next day Google just wind down the api completely.

At the moment i'm working on some sort of social library, but i think capacitor is way better than cordova, even in beta. At the moment you cannot build an android plugin, but it works in the main code, so when they finish you can move to plugin whatever you have done.

I just finished an mqtt integration,very likely i make a google map, a face / barcode detector. (both of them are using overlay with click bait technic, so i just separate this code to be able to reuse for other native stuff, which has native ui also and needs to calculate whether native or webview component has been touched)

The google map also kept changing, so every month you need to refactor the cordova google maps. That's the only plugin which has been maintained very well.

Capacitor is mostly a syntactic sugar over the Cordova, but it matters a lot how to write your plugin. It seems you can build ios plugin already.

ghost avatar Jun 23 '18 02:06 ghost

Are there any updates to this request? @badesemowo was your team able to create cordova plugin for ML Kit?

rg777 avatar Sep 14 '18 04:09 rg777

I think ML Kit should be a seperate plugin because not everyone who uses Firebase wants to use ML Kit, too. So I made a startingpoint for ML Kit -> https://github.com/paulstelzer/cordova-plugin-ml-kit

Everyone is invited to make Pull Requests because at the moment I only implemented Text recognition :)

paulstelzer avatar Oct 14 '18 13:10 paulstelzer

Thanks @paulstelzer! One suggestion that I have is to include the word firebase in the plugin name.

soumak77 avatar Oct 14 '18 13:10 soumak77

@paulstelzer I tried the plugin you created it doesnt seem to work, and i see that you havent been maintaining it correct? when im logging this in app component: console.log('ML KIT', window['MlKitPlugin']); The result is : ML KIT undefined

RicardoElSabio avatar May 04 '20 14:05 RicardoElSabio