Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
message +=
" This is repairable on this device though." +
" You should send the users to the Play Store to update Play Services...";
Alert.alert("Possible SSL Problem", message);
UpdateAPK.patchSSLProvider(false, true); // This will ask Google Play Services to help the user repair
} else {
Alert.alert("Possible SSL Problem", message);
}
});
UpdateAPK.getApps().then(apps => {
console.log("Installed Apps: ", JSON.stringify(apps));
this.setState({ allApps: apps});
}).catch(e => console.log("Unable to getApps?", e));
UpdateAPK.getNonSystemApps().then(apps => {
console.log("Installed Non-System Apps: ", JSON.stringify(apps));
this.setState({ allNonSystemApps: apps});
}).catch(e => console.log("Unable to getNonSystemApps?", e));
}