capacitor-udp
capacitor-udp copied to clipboard
Adding the plugin class in the MainActivity
Hi, what do you mean by "For android development, don't forget to add the plugin class in the MainActivity!"? it would be helpful if you include some examples. I'm getting an error about MainActivity. Thank you
I haven't tested this quite yet but I found that when you open you capacitor app in android studio and to to /java/io.ionic.starter there is a MainActivity file where it said "add plugins here" I assume you just add the line add(UdpPlugin.class); to the init function. Let me know if that works for you.
I can't find that file. I'm not using ionic actually, I'm using just capacitor and Vue.