capacitor-intent-resolver
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Features

When running an external app in the capacitor app, make it executable

Android requires additional plugin settings in MainActivity.java after installation

Please 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 
    }});
  }
}

Package Sidebar

Install

npm i capacitor-intent-resolver

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

229 kB

Total Files

79

Last publish

Collaborators

  • 2sky