MobileChromeApps / mobile-chrome-apps

Chrome apps on Android and iOS
BSD 3-Clause "New" or "Revised" License
2.5k stars 347 forks source link

Accessing Native Client from Cordova. #539

Closed topless closed 9 years ago

topless commented 9 years ago

This is more of a cry for guidance than an issue. We have a chrome app that works on all desktop OS, and then we wrap it with cca according to your instructions and works for Android nicely. We added a .cpp library to our chrome app with the help of Native Client and it works for desktops. We tried the same process with cca and the app is not loading which makes perfect sense. How can I achieved the desired effect? We are thinking of writing a Cordova plugin that will load the c++ library with JNI and will do the mapping from JavaScript to c++, but I was wondering if there is another way, so we can keep it consistent and both apps use the native client approach but with different arch builds for the library for example.

agrieve commented 9 years ago

JNI is the answer afaik.

topless commented 9 years ago

I have posted a more specific question on SO, as I didn't consider it an issue in first place.