You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! This library is very helpful, but I wish there could be another way to open an app. Currently the openApp implementation takes a package name and some extras. It would be great if there's an overloaded method to openApp by an intent directly. So JS send an intent string, and the method just build an intent with that string and opens it.
It'll look like this:
@ReactMethod
public void openApp(String customizedIntent) {
Intent sendIntent = new Intent(customizedIntent);
if (!parseExtras(extras, sendIntent)) {
promise.resolve(false);
return;
}
sendIntent.addCategory(Intent.CATEGORY_LAUNCHER);
this.reactContext.startActivity(sendIntent);
promise.resolve(true);
}
Thank you!
The text was updated successfully, but these errors were encountered:
Hello! This library is very helpful, but I wish there could be another way to open an app. Currently the openApp implementation takes a package name and some extras. It would be great if there's an overloaded method to openApp by an intent directly. So JS send an intent string, and the method just build an intent with that string and opens it.
It'll look like this:
Thank you!
The text was updated successfully, but these errors were encountered: