Open Sesame! See How to Use Other Mobile Apps with Cordova-Open
Alpha Anywhere now supports the Cordova-Open PhoneGap plugin. The Cordova-Open plugin is used to open a file with its associated native app. For example, a PDF file can be displayed using the native PDF viewer on the device or a .mov video file can be watched using the native video player. Files can be loaded from either the mobile device’s filesystem or a remote server.
Imagining the Possibilities for Offline-Enabled Mobile Apps
Imagine an app used by a team of service reps who make on-site calls to repair equipment. The equipment at each job site may be different, and the service reps may need access to documentation (PDFs, videos, Word documents, spreadsheets, etc) for the equipment to consult on-site. Additionally, the documentation needs to be accessible offline because there is no guarantee that connectivity is available at each job site. This means the documentation must be downloaded and stored on-device before each service rep leaves the office and viewable on-site without needing to connect to a server.
With the addition of the Cordova-Open plugin, including support to view various files within a PhoneGap application is no longer necessary. This opens up a whole new class of offline accessible mobile apps to Alpha Anywhere developers. Now, native apps on a mobile device can be leveraged by applications created with Alpha Anywhere to view files.
Taking Mobile Apps to the Next Level With Cordova-Open
- PhoneGap – File download – Download and store a library files on the mobile device that can be accessed while offline.
- PhoneGap – Open File with Native Application – Display a file located either on the device or on a remote server using the associated native application.
To learn more about the PhoneGap – Open File with Native Application action, watch the videos below.
Using the PhoneGap – Open File with Native Application Action to View PDF Files in a Mobile Application
The PhoneGap Cordova-Open plugin allows you to open various file types using the associated native app on a mobile device. For example, if you open a .pdf file, the PDF file is displayed using the native PDF viewer app on the mobile device. If you open a .mp4 file, the video is displayed using the native video viewer on the device. A common use case for this plugin is to download several files when a connection is available so that the files can then be viewer later on when no connection is available.
Viewing Reports in PDF Format on a Mobile Device
Alpha Anywhere’s report writer can save reports as PDF files. Using the Cordova-Open plugin in tandem with Alpha Anywhere’s report writer, you can build applications that generate and display PDF reports on a mobile device using the native PDF viewer.