Skip to content
Discussion options

You must be logged in to vote

You have to use registerPluginInstance, not registerPluginType.

https://capacitorjs.com/docs/v6/ios/custom-code#register-the-plugin

Also, you shouldn't be using the .m file anymore, the methods should be declared in the own .swift file and the plugin class should be a CAPBridgedPlugin instance. And the class should include a identifier and jsName.
That is also explained on the same page, different section

https://capacitorjs.com/docs/v6/ios/custom-code#echopluginswift

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JUSTMUV
Comment options

Answer selected by jcesarmobile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants