I don't have experience with cocoon (I use phonegap) but for that I use cranberrygame's cordova-plugin-game and it works great!
Don't forget to manually insert your app id in the config.xml file because construct2 doesn't seem to copy it to the file.