What I have understood is through phonegap plugin you can invoke native APIs.
Question:
Is it possible to invoke C++ function directly from phonegap, as my middle lever layer is going to be c++, and applicable for both iOS/Android.
What I have understood is through phonegap plugin you can invoke native APIs.
Question:
Is it possible to invoke C++ function directly from phonegap, as my middle lever layer is going to be c++, and applicable for both iOS/Android.
No, not directly. You would have to write a plugin that calls your C++ code. On Android you'd be writing a plugin in Java and using JNI to call your C++ lib. On iOS your created your plugin in Obj-C and call your C++ code. Here is a good SO answer on it https://stackoverflow.com/a/4456290/41679