capacitor-intent-resolver
v1.0.2
Published
Run if there is an executable app
Downloads
2
Maintainers
Readme
Features
When running an external app in the capacitor app, make it executable
Android requires additional plugin settings in
MainActivity.java
after installationPlease refer to the explanation below
Installation
npm
$ npm i capacitor-intent-resolver
yarn
$ yarn add capacitor-intent-resolver
Capacitor plugin sync
Run the following command after installation
$ npx cap sync
Android setting
MainActivity.java
package com.test.app;
import android.os.Bundle;
import com.getcapacitor.BridgeActivity;
import com.getcapacitor.Plugin;
import java.util.ArrayList;
// import CapacitorIntentResolver plugin
import com.capacitor.intent.resolver.CapacitorIntentResolver;
public class MainActivity extends BridgeActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Initializes the Bridge
this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
// Additional plugins you've installed go here
// Ex: add(TotallyAwesomePlugin.class);
add(CapacitorIntentResolver.class); // add CapacitorIntentResolver plugin
}});
}
}