Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Local plugins within the native iOS project are showing as "not implemented." after upgrading to Capacitor 6 #7443

Closed
1 of 3 tasks
jchri853 opened this issue May 2, 2024 · 3 comments
Labels

Comments

@jchri853
Copy link

jchri853 commented May 2, 2024

Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 6.0.0
@capacitor/core: 6.0.0
@capacitor/android: 6.0.0
@capacitor/ios: 6.0.0

Installed Dependencies:

@capacitor/android: not installed
@capacitor/cli: 6.0.0
@capacitor/core: 6.0.0
@capacitor/ios: 6.0.0

[success] iOS looking great! 👌

Other API Details

node - v18.14.2
npm - 9.5.0

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

I integrate over 10 in-house capacitor plugins into my iOS native app. These plugins are managed within a designated folder named 'Capacitor Plugins' (.m / .swift files) and seamlessly bridged with my Ionic/Angular hybrid app

In my Ionic app, I utilize these plugins to retrieve data from the native iOS app. However, after upgrading from Capacitor 5 to 6, all these plugins are now showing as 'unimplemented.'

Expected Behavior

Plugins should work the same as they did using capacitor 5.7.5

Project Reproduction

https://github.com/jchri853/cap6-ios-bug

Additional Information

Simulator Screenshot - iPad mini (6th generation) - 2024-05-01 at 19 53 12

App should display the following prompt under capacitor 5 and 6 using the apprater plugin. Instead the demo project reports

⚡️ WebView loaded
⚡️ To Native -> App addListener 54677256
⚡️ To Native -> Keyboard getResizeMode 54677257
⚡️ TO JS {"mode":"native"}
⚡️ [error] - ERROR {"code":"UNIMPLEMENTED"}

@jchri853 jchri853 added the triage label May 2, 2024
@piotrblasiak
Copy link

Got this as well

@jcesarmobile
Copy link
Member

closing as duplicate of ionic-team/capacitor-docs#275

Capacitor 6 removes automatic plugin registration on iOS, for NPM plugins we can get the classes and register them programmatically, but for custom code you have to call register yourself, see https://capacitorjs.com/docs/ios/custom-code#register-the-plugin

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale May 6, 2024
Copy link

ionitron-bot bot commented Jun 5, 2024

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Jun 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants