This guide will help you integrate a free trial of the Apryse Native Plugin for Android applications using Cordova. Your free trial includes unlimited trial usage and support from solution engineers.
Note: There are other approaches that can be used to integrate Apryse technology with Cordova. Please see this FAQ page to find out more about the relative strengths of each approach.
The trial of Apryse Mobile SDK does not require a trial key. A commercial license key is required for use in a production environment. Please contact sales to purchase a commercial key or if you need any other license key assistance.
License keys are uniquely generated. Please make sure that it is not publicly available (e.g. in your public GitHub).
If you don't already have a Cordova codebase, start one. If you do, then make sure Android is added as a platform and skip to integration.
pdfhellopdftron-cordova plugin in your project directory.pdfhello/platforms/android and add the following line in the gradle.properties file:Key can be left empty for a trialpdfhello/platforms/android/app/main/ and open AndroidManifest.xml with your favorite text editor.Change the activity theme to CustomAppTheme:pdfhello/platforms/android/app/main/com/example/pdf/ and open MainActivity.java with your favorite text editor. Change the base class for the main activity from CordovaActivity to CordovaAppCompatActivity:pdfhello directory call:Then import the pdfhello/platforms/android folder into Android Studio, and run the project from Android Studio using the play button. You will see a message that says No Java files found that extend CordovaActivity. This message is okay to ignore because we're using CordovaAppCompatActivity.Note: When the project is first imported, Android Studio will complain about the minSdk. To resolve this, click Move minSdkVersion to build files and sync project in the error window.Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales