This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pay = { | |
charge: function(card, price, callback) { | |
window.PaystackPlugin.chargeCard(function(resp) { | |
var msg = { | |
id: resp.reference, | |
message: 'Successfull' | |
}; | |
callback(msg); | |
}, function(resp) { | |
var msg = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; connect-src *"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui"> | |
<meta name="mobile-web-app-capable" content="yes"> | |
<title>Photo Upload App</title> | |
<script type="text/javascript" src="cordova.js"></script> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// call this function first to check if the icons has been generated.. | |
function appsIconCheck() { | |
window.requestFileSystem(window.TEMPORARY, 1024 * 1024, function(fs) { | |
fs.root.getDirectory('/data/data/com.awaa.applauncher/icons', { | |
create: false | |
}, function(dirEntry) { | |
// icons generated lets get all the apps. | |
window.installedapps.getApps({ | |
success: generateApps |