@GSE Yeah, I noticed that if you have a plugin from cranberry in C2 and export it to intel XDK and implement the cordova plugin fitting, you don't need any code for the C2 plugins in additions.xml! For the push; you don't even need the C2 plugin, you only need the cordova plugin from cranberry and insert the script into your index.html file. Here's my script:
- Code: Select all
<script>
var applicationId = "YOUR_PARSE_APPLICATIONID";
var clientKey = "YOUR_PARSE_CLIENTKEY";
document.addEventListener("deviceready", function(){
window.parsepushnotification.setUp(applicationId, clientKey);
//registerAsPushNotificationClient callback (called after setUp)
window.parsepushnotification.onRegisterAsPushNotificationClientSucceeded = function() {
//alert('onRegisterAsPushNotificationClientSucceeded');
};
window.parsepushnotification.onRegisterAsPushNotificationClientFailed = function() {
alert('Push notification registration failed.');
};
}, false);
</script>
Make sure you insert that code into your index.html file and replace YOUR_PARSE_APPLICATIONID and YOUR_PARSE_CLIENTKEY with your own keys. Make sure it's inside the <body> tags!Hope this everyone with installation issues with the parse plugin

If the build fails; make sure there's no other plugin interfering with the parse one!