Scandit / scandit-capacitor-datacapture-core

0 stars 3 forks source link

Capacitor V3 #1

Closed Oupsla closed 3 years ago

Oupsla commented 3 years ago

Hello folks 👋

Capacitor V3 has been released for some time now and have some breaking changes about plugins (importing Plugins from '@capacitor/core' is now deprecating for example).

Info : https://capacitorjs.com/docs/updating/plugins/3-0

Do you have any plan to migrate your capacitor plugins ?

Thanks !

ScanditSupport commented 3 years ago

@Oupsla we're already supporting Capacitor 3 since our last release 6.9 (August 2021).

Release Notes: https://docs.scandit.com/data-capture-sdk/capacitor/release-notes/6.9.html

In case of more detailed questions, please feel free to reach out to us directly: https://support.scandit.com/hc/en-us/requests/new

Best regards Scandit Support

Oupsla commented 3 years ago

Hello @ScanditSupport

Yes, the plugin seems to work with Capacitor v3, but the usage is deprecated (and it will not work with futur versions)

Here are some logs :

Capacitor WebPlugin "ScanditCaptureCorePlugin" config object was deprecated in v3 and will be removed in v4.
Capacitor plugin "ScanditCaptureCorePlugin" is using the deprecated "registerWebPlugin()" function

Hope it helps 😄

ScanditSupport commented 3 years ago

Hi @Oupsla

thanks for the heads-up! We are aware using deprecated methods using our plugin with Capacitor 3 due to compatibility reasons with older versions. We will ensure that this gets properly resolved as soon as Capacitor 4 appears on the horizon.

aaronbach commented 2 years ago

Are there any news, since Capacitor 4 is officially released now?

The import of ScanditCaptureCorePlugin is not longer supported in Capacitor V4.

import { Plugins } from '@capacitor/core';
import 'scandit-capacitor-datacapture-core';
import 'scandit-capacitor-datacapture-barcode';

// eslint-disable-next-line @typescript-eslint/naming-convention
const { ScanditCaptureCorePlugin } = Plugins;

https://ionicframework.com/blog/announcing-capacitor-4-0/

ScanditSupport commented 2 years ago

Hi @aaronbach

Thank you for your message.

We are now only compatible with Capacitor 3, but we are currently looking into it and plan to be compatible with Capacitor 4 as quickly as possible in an upcoming version of our SDK, depending on the QA process.

aaronbach commented 2 years ago

@ScanditSupport where can I get more Infos on the planned Releasedate for Capacitor 4 support? At the moment only Scandit prevents us from updating to Capacitor 4.

Thanks

ScanditSupport commented 2 years ago

Hi @aaronbach ,

We would like to inform you that 6.15-beta.1 has been released and it is compatible with Capacitor 4. In case you still have troubles after updating the plugin, please reach out directly: Submit a request – Frequently Asked Questions (FAQ)