PGB Simplified Camera Plugin Example

A Phonegap Build simplified example for the Cordova ‘Camera’ plugin using cli-7.0.1 with minimal use of CSS & Javascript.

https://github.com/jessemonroy650/PGB-Simplified-Camera

The app uses the Cordova ‘Camera’ plugin.

NOTE: There are security notes in the README and in the code – specifically with with data and Content-Security-Policy.

Advertisements

Hack ‘Text to Speech’ Plugin Example

A Phonegap Build simple example for the cordova-plugin-texttospeech plugin using cli-6.0.0, and minimal CSS & Javascript. This is just to test the plugin. It works.

As of Oct 20, 2018, a new version is available that has an input box. You can input any text you like so you can play with the text-to-speech service. The feedback interface has been improved since the T2S is a cloud-based service and is prone to delays.

This example may be removed with notice.

https://github.com/jessemonroy650/hack-text-to-speech

PGB Simplified Media Plugin Example

A Phonegap Build simplified example for the Cordova ‘Media’ plugin using cli-7.0.1 which uses minimal CSS & Javascript.

https://github.com/jessemonroy650/PGB-Simplified-Media

The app uses the ‘Media’ plugin, as well as BOM (Browser Object Model) Objects available on Android’s Webview. The plugins cordova-plugin-file and cordova-plugin-compat are automatically loaded by Phonegap Build.

When the app starts, it plays an ogg audio clip. A wav audio clip is available testing. It expects everything to work. If you are having issues, use pgb-example-core-media – which has more feedback and error messages.

There are security notes in the README and in the code – specifically with http-equiv="Content-Security-Policy". This app does not address audio clips not the mobile device. Doing so will require the use of the Cordova white-list – which this example does not address.

 

WebAPI Audio – Simplified Example

A simplified example for WebAPI Audio. This example app uses the least amount of javascript and css possible.

https://github.com/jessemonroy650/WebAPI-Simplified-Audio

The app uses the WebAPI ‘Audio’ object, as well as BOM (Browser Object Model) Objects.

The example expects everything to work.

  • When the app starts, it plays a trumpet “fanfare” an ogg audio clip.
  • The “Play Other” is the “ice cream truck” song – a wav audio clip.
  • The “Play Buddy Holly” is Buddy Holly’s song entitled “Everyday”.

There are security notes in the Repository and in the code, specifically with http-equiv="Content-Security-Policy". This app does not address audio clips not the mobile device. Doing so will require setting CORS (Cross Origin Resource Sharing)wikipedia, which is still buggy.

Phonegap Build Version map for Cordova Release and Android API-Level, Version, & Code Name

Feel free to bookmark the wiki that maintains this version map; see right side of screen for the link.

To maintain code for clients I have to answer an important question:

Which versions (code names) of Android will be supported when you are done?

This map/table outline the different version and how they relate. For instance, for the latest Phonegap Build release (cli-8.0.0) the top row of the table shows:

  • Phonegap Build cli-8.0.0
  • supports Cordova7.X.X
  • which supports Android API-Levels 19 - 27
  • and is equivalent to Android Version 4.4 - 8.1
  • and the related Code Names are Oreo, Nougat, Marshmallow, Lollipop, KitKat

In future, a much more detailed table will be available – which will include releae dates. If you need more detailed information, the page has footnotes and sources.

Note: At this point, I no longer develop or support Apple and iOS. If in the future I do, I will update this table.

Phonegap Build Map/Table
http://pgb-examples.wikidot.com/phonegap-build-cordova-android-version-map

 



Setup github so you can use this code.

https://pgbexamples.wordpress.com/2018/10/03/setup-github-so-you-can-use-this-code/

  • How to install git on Debian Linux, Ubuntu, Mint, & Debian-based systems
  • How to use github.com for your projects.
    • Setting Up SSH for github.com