Replies: 61 comments 108 replies
-
Dear Team, LocalNotifications - Not able to reference from "@capacitor/core" also does not have any specific pkg to install. There are many more which it has affected. Could you please let me know if they can be fixed, or should I downgrade to V2. Thank you. |
Beta Was this translation helpful? Give feedback.
-
I just upgraded my app to Capacitor 3. Great work guys! 👍 |
Beta Was this translation helpful? Give feedback.
-
Some quick feedback. Overall it works great when running normal builds, but when testing with live reload (at least on android), I am running into this error after following all setup instructions. Any ideas? Notes: I am using Capacitor with create react app without Ionic. Screenshot below is from Android Emulator. |
Beta Was this translation helpful? Give feedback.
-
Update went smoothly for me with no issues. Thank you. look forward to testing this out! |
Beta Was this translation helpful? Give feedback.
-
I had no problems upgrading to the new version. However, the following is different from version 2. On Version 2, this works for me on the web platform, without a error log: ngOnInit(): void {
this.platform.ready().then(async () => {
if (Capacitor.isPluginAvailable('StatusBar')) {
StatusBar.setStyle({
style: Style.Light,
});
}
if (Capacitor.isPluginAvailable('SplashScreen')) {
SplashScreen.hide();
}
});
} After Upgrading to Version 3, i got these error
Maybe i missed something in the Upgrade guide |
Beta Was this translation helpful? Give feedback.
-
In general, capacitor 3 looks great so far. Thanks for the hard work! |
Beta Was this translation helpful? Give feedback.
-
I tried to upgrade but none of the Ionic Native plugins work, it says they are not installed but they are and every Capacitor plugin has an error saying ERROR "plugin is not implemented on web". I followed the upgrade guide am I missing something? Changed all the imports: |
Beta Was this translation helpful? Give feedback.
-
We inject Capacitor in our Angular components, to easier mock it out in tests. Up until now we've created the token this way: import { Capacitor } from '@capacitor/core/dist/esm/definitions';
export const CAPACITOR_TOKEN = new InjectionToken<Capacitor>('Capacitor'); However, the path to the definition and the definition itself is no longer available after upgrading to Capacitor 3.0. The step here is missing in the guide. My best guess of how to continue is to do this: import { CapacitorGlobal } from '@capacitor/core';
export const CAPACITOR_TOKEN = new InjectionToken<CapacitorGlobal>('Capacitor'); Can somebody verify that this is the correct way? |
Beta Was this translation helpful? Give feedback.
-
I have run into issues with community plugins after upgrading to Capacitor 3.
After upgrading to Capacitor 3 ... I got build errors in iOS because Capacitor 3 requires an iOS Deployment target of 12 ... and these plugins specify a deployment target of 11 (and they import Capacitor). Do you have any suggestions on how to handle this? I guess ideally the community plugins would get updated and re-released with a target of 12. But if that hasn't happened yet ... is there any other way to work around this? Thanks. |
Beta Was this translation helpful? Give feedback.
-
After upgrading from Capacitor 2 to 3, my app fails on iOS when it tries to access the Cordova secure storage plugin. If I check window.cordova.plugins.SecureStorage ... it is set to null (not undefined but null). Any idea why this plugin would not be available when running with Capacitor 3? Thanks. |
Beta Was this translation helpful? Give feedback.
-
I have an Ionic V3 app which I have successfully ported from Cordova to Capacitor. I am currently unable to upgrade the app to Capacitor 3 because Capacitor 3 requires Node 12 and Typescript 3.8+ The Ionic V3 app uses ionic-app-scripts to build. The latest official version of ionic-app-scripts (3.2.4) pegs the version of node-sass to 4.10.0 and this does not work on Node 12 (fails to install). Beyond that, ionic-app-scripts pegs the version of Typescript to 2.4.2 which will not work with Capacitor 3. Is it feasible to upgrade an Ionic V3 based app to Capacitor 3? Longer term, I want to migrate the app to Ionic V5 ... but that is a major undertaking that I don't have time/budget for at the moment. Is there any version of ionic-app-scripts (official or otherwise) that would support building for Capacitor 3? I see that there are a huge number of forks (281) of that repo ... but have no idea what any of them contain. Thanks. |
Beta Was this translation helpful? Give feedback.
-
After upgrading I started getting this build failure for all of the capacitor core plugins. first issueError: node_modules/@capacitor/keyboard/dist/esm/definitions.d.ts:2:16 - error TS2665: Invalid module name in augmentation. Module '@capacitor/cli' resolves to an untyped module at 'D:/e10/boltnews-mobile/boltnews/node_modules/@capacitor/cli/dist/index.js', which cannot be augmented. 2 declare module '@capacitor/cli' { second issue❯ npx cap sync android after getting passed aboveRROR Error: Uncaught (in promise): Error: "App" plugin is not implemented on android |
Beta Was this translation helpful? Give feedback.
-
I'm creating a plugin using capacitor 3 that allows Google Fit integrations. The issue I've run into specifically for cap 3 is that the Android onActivityResult override function no longer applies - only the callback function parameter in startActivityForResult. To request permissions for Google Fit, the plugin must call GoogleSignIn.requestPermissions() which is a void function that fires the onActivityResult override. It doesn't look like the changes to requesting permissions applies to this case either so using the @PermissionCallback pattern won't help. How does this fit into the new capacitor structure for Android hook into the result of this request when an activity is triggered like this? Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi, We have written custom plugins for both iOS and Android. I can see document saying custom plugin update guide is still in progress. Any update related to this or how we can update the custom plugins. |
Beta Was this translation helpful? Give feedback.
-
Hey For us the general update an the android, on ios it also worked pretty well, but then when I tried to run the app on ios we always got something like "This plugin is not implemented on ios". After a lot lot of searching I find out that in my
If it helps that's the output of
=> as you can see we also have quite a few custom plugins... (however these were already in the Podfile before the upgrade obviously). Any hint what I did wrong? or is this a bug in capacitor? edit: |
Beta Was this translation helpful? Give feedback.
-
i can't upgrade from v2 to v3 because i have this Storage misbehavior ionic-team/capacitor-plugins#541 |
Beta Was this translation helpful? Give feedback.
-
yay, kursfortegnelse.no web+android+ios app just upgraded to 3.0! 🎉 Only problem I had was the unsupported barcode-scanner. With a little code rewrite I was able to build in the @capacitor-community/barcode-scanner, although it is a bit behind the ionic-native barcode scanner:
This is how the @ionic-native/barcode-scanner/ngx looked like, sadly not compatible with capacitor3. |
Beta Was this translation helpful? Give feedback.
-
As part of migration I've been upgrading an internal plugin to v3... some quick feedback:
A huge thanks to the core team for the 3.0 changes (decoupling core plugins is brilliant) and for the quality of docs and support. 🎉 Given the scope of changes, it was a really smooth migration path. The Capacitor philosophy of letting me manage Xcode and Android Studio files directly as native project components made this migration easier too... I've got a couple of custom iOS extensions in my xcode workspace that send files to my custom Capacitor plugin, and I didn't need to touch them. 😀 |
Beta Was this translation helpful? Give feedback.
-
I migrated my project about a month ago and it went really smoothly. Everything makes a lot more sense now, so thanks a lot for this amazing work! The only issue I had was with Android 11 devices. But the fun part is that only with some. When the app started, some users reported that it showed the splash screen for quite some time and then it just turned white. The only thing that helped was to change the Has anyone experienced anything similar? I don't really know what might have wrong because I was unable to reproduce it. I don't have an Android 11 phone but I tried Android 11 emulator and the app was working smoothly. |
Beta Was this translation helpful? Give feedback.
-
Could someone please tell me how to install Background Task plugin in Capacitor v3? I cannot find it in the official documentation: https://capacitorjs.com/docs/apis |
Beta Was this translation helpful? Give feedback.
-
After upgrading to capacitor 3 I'm getting {"code":"UNIMPLEMENTED"} in the debug log in XCode on Storage.set have followed the upgrade documentation as far as I can see. Does anyone have an idea what could cause this?
|
Beta Was this translation helpful? Give feedback.
-
Has anyone succeeded in getting Capacitor 3 + AppFlow working on Android? |
Beta Was this translation helpful? Give feedback.
-
Hello friends, |
Beta Was this translation helpful? Give feedback.
-
I spent a whole day rebuilding my custom plugin and our app for Android in various ways only to find the decorator name needs to match something particular. The docs say "the name is the same," but I didn't have a name in the @NativePlugin decorator and assumed I needed to add it... Can anyone confirm if it should match the registered class in index.ts, or how exactly does this work? MyPlugin.java:
Should match index.ts:
|
Beta Was this translation helpful? Give feedback.
-
FIXEDOriginal ProblemWe are trying to upgrade from 2.4.2 to 3.3.3, in an Angular 12/Ionic 5 app.
It seems like there is some config file where we need to manually list the plugins we want, so that Capacitor includes them, any suggestions?
We can workaround this by soft-linking from the new location of native-bridge.js to the new location. Solution
|
Beta Was this translation helpful? Give feedback.
-
I have a problem with CapacitorGoogleMaps... In v2 it was ok but importing CapacitorGoogleMaps from @capacitor-community/capacitor-googlemaps-native give me issues reported by user. So I'm trying to use CapacitorGoogleMaps using v2's method:
But it results in this error:
Please help, can I really use CapacitorGoogleMaps the v2 way when I'm using v3? |
Beta Was this translation helpful? Give feedback.
-
after updating capacitor 2 to capacitor 3 My ui change is not triggering properly and misbehaving and hardware back button is not working why? valid ionic mode: "“ios”", expected: "ios" or "md" |
Beta Was this translation helpful? Give feedback.
-
Please share feedback on the Upgrade Guide for Capacitor 3. We'd love to know how the upgrade went in your apps! Here's some ideas for comments:
Beta Was this translation helpful? Give feedback.
All reactions