Closed radivojeostojic closed 2 days ago
Hi @radivojeostojic
There is no direct way to change this string directly via the SDK settings.
However, you can create your own strings.xml
file and override the strings.
For example, in our sample app, the path where you would create the strings.xml
file would be:
blinkid-flutter/sample/android/app/src/main/res/values
In the file, you can override it by adding the following:
<?xml version="1.0" encoding="UTF-8"?>
<resources tools:ignore="DuplicateStrings,UnusedResources" xmlns:tools="http://schemas.android.com/tools">
<string name="mb_licence_check_failed">Your own network error message</string>
</resources>
Let me know if this helps.
Hey @mparadina , thanks for the reply. I was able to change the text for Android using strings.xml, but I haven't found a way to do this on iOS yet. Do you happen to know where I should look or how to make the change?
Hi @radivojeostojic Of course, glad I could help!
For iOS, you can directly change the .strings file inside the BlinkID.xcframework. For example, for English, you can change the en.strings file.
You can also override the strings by following the guide here.
Let me know if you have any additional questions.
Thanks for the help, I am closing this issue because now.
Currently, when I'm on the scanning screen and there is no internet connection, a generic native dialog with the title 'Network error' is displayed. Is there a way to customize this text to something else?