Skip to content

Document Reader Mobile SDK FAQ

Why Do I See Powered by Regula on My Scanning Screen?

Trial licenses display the Powered by Regula watermark on the scanning screen by default. If you have questions about the watermark, contact the sales team.

Where Can I Download Regula's Document Database List?

Download the list of documents available in the database in one of the following formats:

How Do I Collect Logs?

For instructions on collecting logs, see Logging.

How Do I Submit Code-Level Incidents?

If you encounter an issue while integrating the Document Reader Mobile SDK or have questions about your implementation, preparing a short code example can be useful. The technical support team can help troubleshoot the issue or investigate possible workarounds.

Prepare incident submission

Include relevant details

Describe the issue, the steps to reproduce it, any troubleshooting already performed, and relevant conditions, such as the device model or operating system version. Avoid acronyms, jargon, and nonstandard abbreviations.

Attach the following items where applicable:

  • Crash reports and logs
  • Console output containing build or runtime errors and exceptions
  • Screenshots illustrating the issue
  • A sample project containing the minimum code required to reproduce the issue

Minimize sample project

Keep only the components needed to reproduce the issue:

  • Interface controls: Remove unrelated buttons and other controls. If removing a control prevents reproduction, restore only the necessary controls.
  • Data: Reduce large arrays or tables to the smallest set of entries that reproduces the issue.
  • Dependencies: Keep the Regula frameworks and remove unrelated third-party frameworks. If removing a framework prevents reproduction, restore only the necessary frameworks.

Submit incidents for beta SDK versions

Before submitting an incident about a beta version, verify that the issue reproduces on the most recent beta release and include the test results.

How Do I Fix DocumentReader.framework Code-Signing Errors?

If you integrate the frameworks manually, you may encounter ERROR ITMS-90087: Unsupported Architectures or a code-signing error when submitting an iOS application to the App Store.

Code-signing error shown by Xcode

The frameworks support the following architectures for device deployment:

  • arm7, an older 32-bit ARM architecture used by the A5 processor and earlier
  • arm64, a 64-bit ARM architecture used by the A7 processor and later

Simulators use the i386 and x86_64 architectures. When submitting an app to the App Store, the binary must contain only the supported device architectures listed above: arm7 and arm64. If the binary contains unsupported simulator architectures, remove them before submission.

To remove these architectures manually, open Terminal in the framework directory and run:

lipo -remove i386 -output DocumentReader.framework/DocumentReader DocumentReader.framework/DocumentReader
lipo -remove x86_64 -output DocumentReader.framework/DocumentReader DocumentReader.framework/DocumentReader

Alternatively, run the included strip-unused-architectures-from-target.sh script.

Verify the remaining architectures by running:

lipo -info DocumentReader.framework/DocumentReader

How Can I Calculate My App's Final Size?

After integrating the Document Reader Mobile SDK, an Android application's size may increase from 20 MB to 170 MB. This size includes the document database and SDK binaries for four architectures: arm64-v8a, armeabi-v7a, x86, and x86_64. Each architecture contributes approximately 25 MB, totaling approximately 100 MB.

Your Android device uses only one of these architectures. As a result, the application distributed to the device occupies significantly less space than the build containing all four architectures.

To examine the app size for an Android device with the arm64-v8a architecture after adding the fullrfid Core and the Full database, follow these steps:

  1. Restrict the build to the arm64-v8a architecture using the abiFilters option:

    android {
        buildTypes {
            ndk {
                abiFilters "arm64-v8a"
            }
        }
    }
    
  2. In Android Studio, select Build > Generate Signed Bundle / APK.

  3. Select Android App Bundle.

    Options for generating an Android App Bundle in Android Studio

In this example, the SDK contributes approximately 26 MB and the Full database contributes approximately 55 MB. The combined size is 26 + 55 = 81 MB.

The libAndroidSdk.so file represents most of the Core library size and is included for each supported architecture: arm64-v8a, armeabi-v7a, x86, and x86_64. The resource.dat file contributes a smaller amount.

Warning

The size figures in this example apply to SDK version 6.5.*.

After integrating the Document Reader Mobile SDK, an iOS application's size may increase from 20 MB to 170 MB. This size includes the document database and SDK binaries for three architectures: arm64 for iPhoneOS, arm64 for the simulator, and x86_64. Each architecture contributes approximately 25 MB, totaling approximately 75 MB.

Your iOS device uses only one of these architectures. As a result, the application distributed to the device occupies significantly less space than the build containing all three architectures.

To examine the app size for an iOS device with the arm64 architecture after adding the FullRFID Core and the Full database, follow these steps:

  1. Build the project and select Archive to create an archive.

    First step for inspecting iOS application size

  2. After creating the archive, select Distribute App.

    Second step for inspecting iOS application size

  3. Select Ad Hoc as the distribution method.

    Third step for inspecting iOS application size

  4. Select App Thinning, then select Next.

    Fourth step for inspecting iOS application size

  5. Select a signing method. This example uses Automatically manage signing.

    Fifth step for inspecting iOS application size

  6. Select Export.

    Sixth step for inspecting iOS application size

  7. In the exported folder, locate the report showing the app size.

    Final iOS application size report

In this example, the SDK contributes approximately 23.5 MB and the Full database contributes approximately 55 MB. The combined size is 23.5 + 55 = 78.5 MB.

The DocumentReaderCore binary represents most of the Core library size and is provided for the following architectures: arm64 and arm64_x86_64. The resource.dat file contributes a smaller amount.

Warning

The size figures in this example apply to SDK version 6.8.*.

For ways to reduce app size, see Optimization.

Where Can I Find My Bundle ID or Application ID?

A bundle ID identifies an iOS application, while an application ID identifies an Android application. Both are unique identifiers that operating systems and app stores use to distinguish applications. They typically follow a reverse-domain format, such as com.example.appname.

Find iOS bundle ID

To find the bundle ID in Xcode:

  1. Open the project in Xcode.
  2. In the TARGETS section, select the relevant target.
  3. Select the General tab and locate the Identity section.
  4. Find the bundle ID in the Bundle Identifier field.

Bundle IDs are case-sensitive. For more information about bundle IDs, see the official Apple documentation.

Find Android application ID

The applicationId property in the app module's build.gradle file defines the application ID, also called the package name. To find it in Android Studio:

  1. Open the project in Android Studio.
  2. In the project pane, expand the app folder.
  3. Open the build.gradle file.
  4. Locate the applicationId property and read its value.

Alternatively, check the package attribute in the <manifest> tag of the AndroidManifest.xml file under src/main. Google Play and Android use the package attribute in the merged manifest to identify the app.

For more information about application IDs, see the official Android documentation.

Why Might Apple Reject My App After I Integrate Document Reader SDK?

After you integrate the Document Reader SDK into an iOS application, Apple may reject your App Store submission under App Store Review Guideline 2.1.

The Document Reader SDK includes Apple's Core NFC framework for reading RFID chips. Apple may request a video demonstration of NFC functionality during review, even if the application does not use this functionality.

If your application does not use RFID chip reading and you have not included NFC permissions or capabilities, explain to Apple that the application does not use NFC.

If your application uses RFID chip reading, provide Apple with a video demonstrating NFC functionality and a written explanation of how the application uses it.