Skip to content

filmaj/cordova-amplitudejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wat

This is shamelessly copied from the AmplitudeJS repo + demo.

Some small tweaks were applied to the project structure from the original repo - essentially using what's under examples/blue-playlist as the base of the app, and moving some other resources from the examples/ folder around so that the app has access to everything it needs. Also had to download + bundle one song MP3 into the app bundle. Finally, changed the app so it only shows a single song (instead of 10).

Requirements

  • npm install -g cordova

Getting Started

Once you have the cordova CLI tool installed, this worked flawlessly for me:

  • cordova platform add browser android to install both browser and Android deploy targets
  • cordova serve + loading http://localhost:8000 and clicking on "browser" works great in the browser
  • cordova run android (ensure you have a connected Android device or emulator running) also works!

Tested On

The following targets work:

  • Chrome for Android 59
  • Chrome for Desktop 59
  • cordova-android 6.2.2 on:
    • a Google Pixel running Android 7.1.2 as well as 7.1.0
    • an Android emulator (on a Mac) running Android 7.0
    • an Android emulator (on a Mac) running Android 6.0
    • on the "Browser" app in an Android emulator (on a Mac) running Android 6.0
    • an Android emulator (on a Mac) running Android 5.1
    • on the "Browser" app in an Android emulator (on a Mac) running Android 5.1
    • an Android emulator (on a Mac) running Android 5.0
    • on the "Browser" app in an Android emulator (on a Mac) running Android 5.0

The following targets did not work:

  • an Android emulator on a Mac running Android 4.4 - I got the error E/ ( 1143): Failed to open file '/android_asset/www/FirstSnow-Emancipator.mp3'. (No such file or directory)