Review Default Wallet Strategy's installApplications method
In the DefaultStrategy.installApplications method there is a 'loose' (split from the method's return call) code exert:
self.walletService.getSSAppsFromInstallationURL((err, apps) => {
let externalAppsList = Object.keys(apps);
if (externalAppsList.length > 0) {
externalAppsList.forEach(appName => {
appsToBeInstalled[appName] = {
hasTemplate: false,
newInstance: false,
seed: apps[appName]
};
});
let landingApp = {name: externalAppsList[0]};
wallet.writeFile(`${self.config.appsFolderName}/.landingApp`, JSON.stringify(landingApp), () => {
console.log(`Written landingApp [${landingApp.name}]. `)
});
}
});
compare this against the Original Trust Loader implementation to verify all is ok (and if this works or not originally)
Edited by Ghost User