Found this:
For Android:
PackageManager pm = context.getPackageManager();
Intent appStartIntent = pm.getLaunchIntentForPackage(appPackageName);
if (null != appStartIntent)
{
context.startActivity(appStartIntent);
}
For ios:
BOOL isAppInstalled=[[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString:@"APP-URL-Scheme"]];
if (isAppInstalled) {
[
[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"APP-URL-Scheme"]]; // app launching code
}else {
[
[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"Copied iTunes Store URL"]]; //go to store
}
but again, how do I make it work with C2?