Can't get the basic echo example to work properly #3893
-
Hi there, I am trying to create my own plugin following the documentation. I launch the below code in a iOS simulator:
This shows a Modal with Now I change slightly the
But this still shows the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Make sure to import the plugin with: import { Plugins } from '@capacitor/core';
const { MyPlugin } = Plugins; If you import |
Beta Was this translation helpful? Give feedback.
-
@pwespi I spent so much time on this, I can't thank you enough! This is now working!! |
Beta Was this translation helpful? Give feedback.
Make sure to import the plugin with:
If you import
MyPlugin
directly, it will always use the web implementation. (This will be improved in capacitor v3 I think.)