Test Click on Device for Generated Webapp – Ubuntu Touch Guide

click-packagesubuntu-touch

I used the webapp generator at http://developer.ubuntu.com/webapp-generator/ to create a web container for cheesy 80s radio station Magic (as heard in most London taxis). I now have a shiny new click package, which I can upload to the store, which is great – however it feels a bit untested.

I would like to install it on my phone prior to sharing it with the world, just so that if I made a typo in the URL or something I can catch it before embarrassing myself more than admitting listening to Magic already does.

How do I test a click package on my device?

Best Answer

The method I use for testing clicks is:-

  1. Make the device accessible over adb using System Settings → About this phone → Developer Mode → Switch on.

  2. Attach the device via a USB cable

  3. Use adb to push the click package to the device

    adb push /path/to/your.click /tmp
    
  4. Use adb to install the click package

    adb shell pkcon install-local --allow-untrusted /tmp/your.click
    
  5. Pull down in the app scope to see the icon for your application appear