Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Register custom android capacitor plugin

$
0
0

I am having problems integrating my plugin with android, I followed the guide https://capacitorjs.com/docs/plugins/android and everything was fine but when importing the plugin into MainActivity
import com.myplugin.plugin says “Cannot resolve symbol myplguin”

in my application
import {Plugins} from ‘@ capacitor / core’;
const {myplugin} = Plugins;

when trying to use myplugin.echo ({value: “test”}). then (® => {
console.log ®;
})

I get “cannot read echo property of undefined”

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>