IsAppInstalled
[Player Network SDK & MSDK] Synchronus interface.
note
1.Android platform passes packageName
as the parameter. iOS platform passes URLScheme
as the parameter.
2.This judgment is continuously updated, and not connecting to a certain channel does not affect it.
App | Android Parameter | iOS Parameter |
---|---|---|
Apple | Not supported | System APP |
Discord | com.discord | discord:// |
DMM | Not supported | Not supported |
Facebook app: com.facebook.katana Messenger: com.facebook.orca | fb:// | |
Game Center | Not supported | gamecenter:// |
Garena | com.garena.gas com.garena.gaslite | garenagc:// |
com.google.android.gms | googlechrome:// | |
com.instagram.android | instagram://app | |
Kakao | com.kakao.talk | kakaolink:// |
LINE | jp.naver.line.android | line:// lineauth2:// |
Messenger | com.facebook.orca | fb-messenger-share-api:// |
com.tencent.mobileqq | mqq:// | |
SquareEnix | com.square_enix_software_token | Not supported |
com.twitter.android | twitter:// | |
VK | com.vkontakte.android | vk:// vk-share:// |
com.tencent.mm | wechat:// |
Supported Platform
- Unity
- Unreal Engine
Supports
Android, iOS
platform.Supports
Android, iOS
platform.Function Definition
- Unity
- Unreal Engine
bool IsAppInstalled(string channel, string extraJson = "{}")
static bool IsAppInstalled(std::string channel, std::string extra_json = "{}")
Input Parameters
- Unity
- Unreal Engine
Parameter | Type | Description |
---|---|---|
channel | string | Android platform passes packageName as the parameter, iOS platform passes URLScheme as the parameter. |
extraJson | string | Extended field |
Parameter | Type | Description |
---|---|---|
channel | std::string | Android platform passes packageName as the parameter, iOS platform passes URLScheme as the parameter. |
extra_json | std::string | Extended field |
Code Sample
- Unity
- Unreal Engine
// Android
bool isInstalled = UnionAdapterAPI.GetToolsService().IsAppInstalled("com.facebook.katana");
// iOS
bool isInstalled = UnionAdapterAPI.GetToolsService().IsAppInstalled("fb://");
// Android
bool isInstalled = GUA_NAMESPACE::GUAToolsService::IsAppInstalled("com.facebook.katana");
// iOS
bool isInstalled = GUA_NAMESPACE::GUAToolsService::IsAppInstalled("fb://");