Search code examples
javascriptandroidangularjsionic-frameworkgoogle-project-tango

Mobile App - Using both Project Tango and Ionic and/or angular


I am looking for guidance on a mobile app project I am working on. Most of the app can be delivered using angular.js (and perhaps ionic) javascript technology. For one component though I need to integrate with an API, specifically google project tango API. This API is only available in java, C or unity (https://get.google.com/tango/developers/). Im aware I am a little out of my depth, but is it possible to use both technologies in the same mobile app, and if so can you provide some guidance on how to setup the dev environment?

Thanks in advance for any help.


Solution

  • There is nothing special about Ionic that prevents Android's excellent support of JavaScript ↔ Java binding:

    https://developer.android.com/guide/webapps/webview.html#UsingJavaScript

    How to call javascript from Android?

    In the case of Ionic and Tango, you can interact with the Java Tango API from within Ionic controllers.