English
Launcher
About 170 wordsLess than 1 minute
2026-01-19
Launcher
| API Name | Description |
|---|---|
| launcher.checkAppInstalled | Check if app is installed |
| launcher.launchApp | Launch third-party app |
Check if App is Installed
Code Example
FSOpen.launcher.checkAppInstalled({
scheme: 'taobao',
pkgName: 'com.alibaba.taobao',
onSuccess: function(resp) {
// installed: true
if (resp.installed) {
alert('App is installed on this device');
} else {
alert('App is not installed on this device');
}
}
});Method: FSOpen.launcher.checkAppInstalled
JS Version: 2.0.0
Client Support: Version 5.4.0 and above
Parameter Description:
| Parameter | Type | Required | Description |
|---|---|---|---|
| scheme | String | Yes | App scheme (iOS only). |
| pkgName | String | Yes | Package name (Android only). |
Success Callback Returns:
| Parameter | Type | Description |
|---|---|---|
| installed | Boolean | Detection result |
Launch Third-party App
Code Example
FSOpen.launcher.launchApp({
scheme: 'taobao',
pkgName: 'com.alibaba.taobao',
onSuccess: function(resp) {
// do sth
},
onFail: function(error) {
if (error.errorCode === 40010) {
alert('App is not installed');
return;
}
alert('Operation failed, error code: ' + error.errorCode);
}
});Method: FSOpen.launcher.launchApp
JS Version: 2.0.0
Client Support: Version 5.4.0 and above
Parameter Description:
| Parameter | Type | Required | Description |
|---|---|---|---|
| scheme | String | Yes | App scheme (iOS only). |
| pkgName | String | Yes | Package name (Android only). |
