cordova-plugin-aframe
This plugin adds A-Frame support to your Cordova application!
Installation
cordova plugin add cordova-plugin-aframecordova prepare
Usage
A sample A-Frame demo looks like this:
To get that working in Cordova, there are a few important steps.
- Wrap your scene in a
<script>
tag - Add a
<div class="cordova-aframe-root" ...>
tag (special CSS applies) - Inject your scene in Cordova's
deviceready
event
Example: