Create a gist now

Instantly share code, notes, and snippets.

@jawinn /rate_app.js
Last active Aug 29, 2015

What would you like to do?
Rate app button, cross-platform app
$('#rate-app').on('click', function(e) {
// Find device platform using the plugin org.apache.cordova.device
var devicePlatform = device.platform;
// Check which platform
if (devicePlatform == "iOS") {''); // or itms://
} else if (devicePlatform == "Android") {'market://details?id=com.YOUR.PACKAGENAME');
} else if (devicePlatform == "BlackBerry"){'<applicationid>');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment