Comments (5)
Hi @mladilav,
v1.5.0 uses old API and unfortunately changing that text requires writing some native code on iOS.
Open CDVBlinkIdScanner.m
add the following below #import<MicroBlink/MicroBlink.h>
:
@interface CustomIDCardOverlayViewController : PPIDCardOverlayViewController
@end
@implementation CustomIDCardOverlayViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.idCardSubview.tooltipLabel.text = @"your text";
}
@end
In the same file replace:
UIViewController<PPScanningViewController> *scanningViewController = [PPViewControllerFactory cameraViewControllerWithDelegate:self coordinator:coordinator error:nil];
with:
CustomIDCardOverlayViewController *idCardOverlay = [[CustomIDCardOverlayViewController alloc] init];
UIViewController<PPScanningViewController> *scanningViewController = [PPViewControllerFactory cameraViewControllerWithDelegate:self overlayViewController:idCardOverlay coordinator:coordinator error:nil];
Kind regards,
Jure
from blinkid-cordova.
Hi @mladilav,
v1.5.0 uses old API and unfortunately changing that text requires writing some native code on iOS.
OpenCDVBlinkIdScanner.m
add the following below#import<MicroBlink/MicroBlink.h>
:@interface CustomIDCardOverlayViewController : PPIDCardOverlayViewController @end @implementation CustomIDCardOverlayViewController - (void)viewDidLoad { [super viewDidLoad]; self.idCardSubview.tooltipLabel.text = @"your text"; } @end
In the same file replace:
UIViewController<PPScanningViewController> *scanningViewController = [PPViewControllerFactory cameraViewControllerWithDelegate:self coordinator:coordinator error:nil];
with:
CustomIDCardOverlayViewController *idCardOverlay = [[CustomIDCardOverlayViewController alloc] init]; UIViewController<PPScanningViewController> *scanningViewController = [PPViewControllerFactory cameraViewControllerWithDelegate:self overlayViewController:idCardOverlay coordinator:coordinator error:nil];
Kind regards,
Jure
Hello!
Thanks for your answer! But I have one more question:
Is it possible to get the text @"your text"; from en.strings?
from blinkid-cordova.
Instead of @"your text" you can set it to MB_LOCALIZED(@"position_tooltip"); and add "position_tooltip" key and it's value inside en.strings file.
Kind regards,
Jure
from blinkid-cordova.
Hello @jcular !
I have a question. How I can set the language in my app for new microblink (4.7.0) ?
from blinkid-cordova.
Hi @mladilav,
sorry for the delay with the answer. We did, however, check BlinkID v5.3 (our latest release), and the feature to set the language. It seems like for some reason this isn't working in the latest release, so we're classifying this issue as a bug and we will check this before the next release.
Thanks,
Jurica.
from blinkid-cordova.
Related Issues (20)
- not able to install plugin for ios HOT 4
- Not able to catch timeout HOT 2
- Not able to get face image while face image is true and full document is false HOT 1
- App getting crashed with One plus one device HOT 1
- Get the back image of the scanned USDL HOT 2
- Support for vertical USDL HOT 2
- Cant run plugin HOT 1
- cordova plugin : verification failed related to Unsupported Architectures, while submission to apple HOT 3
- Conflict with cordova-plugin-camera on Android HOT 1
- secondSideSplashMessage does not show up on iOS HOT 3
- Upgrade the plugin from 1.5.0 to latest (5.5.0) getting invalid license HOT 1
- Back side of US DL HOT 7
- Build 5.7.1 fails to install HOT 9
- Failed to detect if front and back side match in iOS HOT 4
- Build "MicroBlink.framework" failed. on xCode Version 12.x (macOS Big Sur) HOT 4
- Orientation does not match device when initialized horizontally HOT 4
- unable to get face image HOT 4
- Is there a way to turn off intro tutorial HOT 1
- In iOS, after scanning front and back, all images are undefined in BlinkIdMultiSideRecognizer.result HOT 1
- Fail to install in IOS platform HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blinkid-cordova.