Config for iOS. URI handler for bitcoin urls. Fix config.xml

This commit is contained in:
Gustavo Maximiliano Cortez 2014-11-26 12:36:51 -03:00
commit e0e5596bb0
4 changed files with 126 additions and 10 deletions

View file

@ -8,9 +8,18 @@ angular.element(document).ready(function() {
if (window.cordova !== undefined) {
document.addEventListener('deviceready', function() {
setTimeout(function(){ navigator.splashscreen.hide(); }, 2000);
function handleBitcoinURI(url) {
if (!url) return;
window.location = '#!/uri-payment/' + url;
}
window.plugins.webintent.getUri(handleBitcoinURI);
window.plugins.webintent.onNewIntent(handleBitcoinURI);
window.handleOpenURL = handleBitcoinURI;
startAngular();
});
}, false);
} else {
startAngular();
}