C# code integration

Dear all,

I’m currently developing a new ionic app for Android. A basic requirement is the need to use two different libraries (not developed by me), one written in C, the other in C#.

I managed to integrate the C code using a custom cordova plugin which uses the JNI. Now it’s time to integrate the C# Library. What is the feasibility of each solution?

  1. Use a tool like http://jni4net.com/ (would it work under Android?)
  2. Create a separate service (e.g. in Xamarin) and call it via ionic (How to call the service? How to bundle them in one single package?)
  3. Any other solution that does not involve rewriting the code

Thanks in advance for any reply.
Daniele