klippa-app / react-native-klippa-scanner-sdk

A React Native plugin to use the Klippa Scanner SDK
MIT License
2 stars 0 forks source link

Number of images / pictures not limited on iOS #4

Closed Dallas62 closed 3 years ago

Dallas62 commented 3 years ago

Hi,

When I try to limit the number of pictures on iOS, I still can take pictures, no ImageLimitReachedMessage displayed. Everything is fine on Android on this behaviour.

                const res = await KlippaScannerSDK.getCameraResult({
                    License: KLIPPA_LICENSE,
                    ImageMaxWidth: 1400,
                    ImageMaxHeight: 1400,
                    ImageLimit: 1,
                    AllowMultipleDocuments: false,
                    DefaultMultipleDocuments: false,
                    MoveCloserMessage: i18n.t('document_scanner.move_closer'),
                    ImageLimitReachedMessage: i18n.t(
                        'document_scanner.image_limit_reached',
                    ),
                    ImageTooBrightMessage: i18n.t(
                        'document_scanner.image_too_bright',
                    ),
                    ImageTooDarkMessage: i18n.t(
                        'document_scanner.image_too_dark',
                    ),
                    Success: {
                        message: i18n.t('document_scanner.succes'),
                        previewDuration: 1,
                    },

                    PrimaryColor: '#FF992D',
                    AccentColor: '#6BD8A2',
                    OverlayColor: '#6BD8A2',
                    WarningBackgroundColor: '#F9B06C',
                    WarningTextColor: '#FFFFFF',
                });
"@klippa/react-native-klippa-scanner-sdk@^0.1.0":
  version "0.1.2"
  pod 'Klippa-Scanner', podspec: 'https://custom-ocr.klippa.com/sdk/ios/specrepo/***/***/KlippaScanner/latest.podspec'

Regards,

jerbob92 commented 3 years ago

Hi!

This functionality is not (yet) supported on iOS. I will update the documentation.