Android:
:
<activity
android:name=".MainActivity"
android:label="@string/activity_name"
android:launchMode="singleTask"
<intent-filter android:label="@string/launcher_name" >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<data android:scheme="yourappscheme"/>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
Android: launchMode = "singleTask"
singleTask singleTop .
.
iOS:

, " " href "yourappscheme://".
<a href="yourappscheme://">Open my app</a>
, Scheme, host.
, URL-, .
, URL- : yourappscheme://? username = "xxx@gmail.com"
Android:
OnCreate.
Intent intent = getIntent();
Uri data = intent.getData();
if(data!=null) {
String scheme = data.getScheme();
Toast.makeText(getActivity(), scheme, Toast.LENGTH_LONG).show();
if(scheme.contains("yourappscheme")) {
String urltextboxname = data.getQueryParameter("username");
system.out.println(urltextboxname)
}
}
iOS:
:
- (BOOL)application:(UIApplication*)application openURL:(NSURL*)url sourceApplication:(NSString*)sourceApplication annotation:(id)annotation
{
if (!url) {
return NO;
}
NSString* jsString = [NSString stringWithFormat:@"handleOpenURL(\"%@\");", url];
[self.viewController.webView stringByEvaluatingJavaScriptFromString:jsString];
[[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginHandleOpenURLNotification object:url]];
NSString *myUrlString = [url absoluteString];
if ([myUrlString containsString:@"yourappscheme://"])
{
NSLog(@"Calling Application Bundle ID: %@", sourceApplication);
NSLog(@"URL scheme:%@", [url scheme]);
NSLog(@"URL query: %@", [url query]);
}
return YES;
}
, .