Apache Cordova (previously PhoneGap) is an open-source framework that allows developers to create native mobile apps using HTML, CSS, and JS, instead of platform-specific languages. This means the same codebase can be used for web and mobile; with native apps created as hybrid or "wrapped" versions of web apps.

Will Chameleon work with Cordova?

Chameleon operates within web environments, and thus will operate within Cordova apps, as long as the Cordova app resembles a web environment, including:

  • Uses HTML, CSS, JS as the languages within the Cordova app

  • Technologies such as localStorage, MutationObserver and cookies are not disabled

  • Chameleon code snippet can communicate with the server (to get and send data)

Learn more about the technologies that Chameleon supports here.

How to show the Chameleon Builder within Cordova apps?

The Chameleon Builder is the interface which you can use to create Chameleon Experiences. This can be accessed once the Chameleon code snippet is installed, via the Chameleon dashboard or the Chameleon Chrome Extension.

Only people that have access to your Chameleon account are allowed to create Experiences for your application. The proof of this occurs when you enter the Chameleon dashboard (while you have the Chrome Extension installed) or launch the Builder from within the dashboard.

Therefore it is easiest to create Experiences for your Cordova app, if the underlying app is also accessed via the web browser.

If this is not possible, then the Chameleon team can help you manually set a cookie in the Cordova app that will identify you as an authorized Chameleon user and show the Builder for your account. Please email us for help on this.

Did this answer your question?