I’m developing an app that will be called by an android native app. I also have to call them. For doing this I found this plugin.
They will call my app (and expect me to call theirs) following this code:
String packageName = “com.android.app”;
Intent intent = getPackageManager().getLaunchIntentForPackage(packageName);
if (intent == null) {
// The app is not installed
intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(“market://details?id=” + packageName));
}
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.putExtra(“param”, “aaaaa”);
startActivity(intent);
I don’t get if the plugin will work to open my app when they do this (and their app will open also).
I look for a way of using intends in ionic but I found nothing.
Thanks!