CocoonJS & Cordova plugins: “class not found” error
问题 I would be glad if we had an example on how cordova plugins should be wrapped for CocoonJS. I'm trying to use the device-orientation plugin (compass) in a simple example but after the app has initialized, the navigator.compass.getCurrentHeading() returns an CompassError with the code: Class not found The class name cannot be resolved correctly, so probably something's wrong with the config.xml file. After combining many sources, mine looks like this: ../www/config.xml <?xml version='1.0'