You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 17, 2022. It is now read-only.
Pdf Viewer Air Native Extension lets you open pdf files right from your Air mobile apps. On both Android and iOS, it will open a dialog and lets you select which program you wish to use for opening the file.
<uses-sdkandroid:targetSdkVersion="28"/>
<application>
<!-- Other Activities, services, or providers of your Android app.--><!-- Change [YOUR_PACKAGE_ID] to your own applicationID but keep ".provider" at the end. [YOUR_PACKAGE_ID].provider-->
<providerandroid:name="com.myflashlabs.pdfViewer.AnePdfViewerProvider"android:authorities="[YOUR_PACKAGE_ID].provider"android:exported="false"android:grantUriPermissions="true">
<meta-dataandroid:name="android.support.FILE_PROVIDER_PATHS"android:resource="@xml/pdf_viewer_ane_provider_paths"/>
</provider>
<application>
<extensions>
<extensionID>com.myflashlab.air.extensions.pdfViewer</extensionID>
<!-- dependency ANEs -->
<extensionID>com.myflashlab.air.extensions.dependency.androidx.core</extensionID>
<extensionID>com.myflashlab.air.extensions.dependency.androidx.lifecycle</extensionID>
<extensionID>com.myflashlab.air.extensions.dependency.overrideAir</extensionID>
</extensions>
On iOS side, the dialog will always open but on the Android side, if there is no application installed on the device to be able to handle PDF files, the extension will return false. So you should probably promote that user to install Acrobat reader app or any other application that can handle PDF files.
On Android side, your pdf file must be copied to File.cacheDirectory. On iOS side, your file can be anywhere! File.applicationDirectory, File.applicationStorageDirectory or File.documentsDirectory they all work.
If you are an active MyFlashLabs club member, you will have access to our private and secure support ticket system for all our ANEs. Even if you are not a member, you can still receive premium help if you purchase the premium support package.
About
Pdf Viewer air native extension lets you open pdf files from your Adobe Air mobile apps. Supported on Android and iOS