Skip to content

Instantly share code, notes, and snippets.

View meghnasmoorthy's full-sized avatar

meghnasmoorthy

View GitHub Profile
@meghnasmoorthy
meghnasmoorthy / android_autoupdate.js
Created August 16, 2017 11:43
Trigger app update programatically
function doWeHaveLatestVersion(){
return true;//compare app version with version of apk in server
}
if(!doWeHaveLatestVersion()){
fileUri="file:///storage/emulated/0/";
window.resolveLocalFileSystemURL(
fileUri,
onFileResolved,
onFileResolveError);