Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

ModusCreateOrg/cordova-plugin-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

No longer maintained

[DEPRECATED] This repository is no longer maintained

While this project is fully functional, the dependencies are no longer up to date. You are still welcome to explore, learn, and use the code provided here.

Modus is dedicated to supporting the community with innovative ideas, best-practice patterns, and inspiring open source solutions. Check out the latest Modus Labs projects.

Modus Labs


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.