Skip to main content

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.

AppAndroid ParameteriOS Parameter
AppleNot supportedSystem APP
Discordcom.discorddiscord://
DMMNot supportedNot supported
FacebookFacebook app: com.facebook.katana
Messenger: com.facebook.orca
fb://
Game CenterNot supportedgamecenter://
Garenacom.garena.gas
com.garena.gaslite
garenagc://
Googlecom.google.android.gmsgooglechrome://
Instagramcom.instagram.androidinstagram://app
Kakaocom.kakao.talkkakaolink://
LINEjp.naver.line.androidline://
lineauth2://
Messengercom.facebook.orcafb-messenger-share-api://
QQcom.tencent.mobileqqmqq://
SquareEnixcom.square_enix_software_tokenNot supported
Twittercom.twitter.androidtwitter://
VKcom.vkontakte.androidvk://
vk-share://
WeChatcom.tencent.mmwechat://

Supported Platform

Supports Android, iOS platform.

Function Definition

bool IsAppInstalled(string channel, string extraJson = "{}")

Input Parameters

ParameterTypeDescription
channelstringAndroid platform passes packageName as the parameter, iOS platform passes URLScheme as the parameter.
extraJsonstringExtended field

Code Sample

// Android
bool isInstalled = UnionAdapterAPI.GetToolsService().IsAppInstalled("com.facebook.katana");
// iOS
bool isInstalled = UnionAdapterAPI.GetToolsService().IsAppInstalled("fb://");