Config for iOS. URI handler for bitcoin urls. Fix config.xml
This commit is contained in:
parent
2063f74dab
commit
e0e5596bb0
4 changed files with 126 additions and 10 deletions
13
js/init.js
13
js/init.js
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue