Search code examples
ionic-frameworkcordova-plugins

IONIC Controller, Unable to access cordova plugin ThemableBrowser


Error: Refernce Error Cordova not defined

Below is my Controller,

controller("FeedController", function($http, $scope,$rootScope) {

cordova.ThemeableBrowser.open('http://apache.org', '_blank', {

    backButton: {
        wwwImage: 'images/back.png',
        wwwImagePressed: 'images/back_pressed.png',
        wwwImageDensity: 2,
        align: 'left',
        event: 'backPressed'
    }

});

});

Solution

  • You Cannot Access Device Plugins in Web Commands ,

    • ionic serve
    • ionic serve --lab

    or Something else , You Have to try it On real time device ...

    try

    ionic run android