Access modifier of default plugins not matches on android and iOS #4024
-
I was trying to create some new plugins which extend the default plugin. (PushNotifications class in my case) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Are you referring to Which methods in particular are you trying to access? |
Beta Was this translation helpful? Give feedback.
-
The Capacitor plugins are not intended to be subclassed. For Capacitor 3 all plugins are being moved out of capacitor/ios and capacitor/android to be their own packages, most of them will have "implementation" classes that can be used from native or from other plugins, directly without instantiating the plugin class. |
Beta Was this translation helpful? Give feedback.
The Capacitor plugins are not intended to be subclassed.
For Capacitor 3 all plugins are being moved out of capacitor/ios and capacitor/android to be their own packages, most of them will have "implementation" classes that can be used from native or from other plugins, directly without instantiating the plugin class.