cordova-plugin-example

Example Cordova plugin for iOS and Android to support blog post.

Cordova Plugin Example

Example Cordova plugin for iOS and Android to support this blog post.

A simple Cordova plugin based on the echo plugin example from the Cordova documentation.

  • echo method: Extends that example to display a native Toast on Android, and a native dialog like view on iOS.
  • echojs method: Basic demo showing that plugins can also be used to organize and distribute useful JavaScript, and don’t need native implementations necessarily.

iOS doesn’t have a Toast type UI component, hat tip to this Stack Overflow thread for providing a simplistic alternative that doesn’t introduce any extra dependencies and allows us to demonstrate a native interface without having to get lost in implementing something complex.

Now also supports the browser platform as detailed in this blog post.

Related Repositories

cordova-plugin-wechat-example

cordova-plugin-wechat-example

An example project for cordova-plugin-wechat ...

cordova-androidwear-example

cordova-androidwear-example

sample project for the Cordova Android Wear Plugin ...

MapsPluginExample

MapsPluginExample

Maps plugin example for Cordova/Android ...

ionic-2-file-transfer-example

ionic-2-file-transfer-example

:file_folder: Download files to a device using Ionic 2 w/ the cordova-plugin-file-transfer plugin ...

cordova-diagnostic-plugin-example

cordova-diagnostic-plugin-example

Example project which illustrates use of the Diagnostic Cordova/Phonegap plugin ...