Ionic native 3 media plugin error("plugin not installed")

  1. How exactly did you create the project =>ionic start musicplayer
  2. How exactly did you add the plugin(s) => after platform add…
    adding plugins… a) ionic plugin add --save cordova-plugin-music-
    controls
    b) npm install --save @ionic-native/music-controls
  3. How exactly did you integrate it in the code => i am calling the
    function in constructor. using official ionic plugin documentation

4)How exactly are you running/building the project=> ionic run android --prod
5) When and where exactly do you get the error you are posting=> after build when i i run my apk . it shows white blank screen with the given error…

even the simple flashlight plugin hv the same issue.

i have worked with sqlite ionic native 3 earlier …all going fine but after cordova upgradation 7. there was gradle issue .so i i was back to cordova 6.5 yesterday again.

ordova CLI: 6.5.0
Ionic Framework Version: 3.1.1
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v7.7.1
Xcode version: Not installed.

This as well: http://ionicframework.com/docs/native/#Add_Plugins_to_Your_App_Module ?

Same problem without --prod?

yes i am declaring them in NgModule…
ok let me check without --prod tag

cool without prod tag it is working now.
but i tried again with prod tag and it is giving same problem.

so it is something with prod command

same issue still in one more project.
error


Hello Database Provider
vendor.js:1 Native: tried accessing the SQLite plugin but it's not installed.
S @ vendor.js:1
vendor.js:1 Install the SQLite plugin: 'ionic plugin add cordova-sqlite-storage'
S @ vendor.js:1
main.js:1 Unable to open database plugin_not_installed

[/code]

dependencies

 "@ionic-native/splash-screen": "3.10.2",
        "@ionic-native/sqlite": "^4.2.1",
        "@ionic-native/status-bar": "3.10.2",

platform>android>android json

 {
            "id": "cordova-sqlite-storage.SQLitePlugin",
            "file": "plugins/cordova-sqlite-storage/www/SQLitePlugin.js",
            "pluginId": "cordova-sqlite-storage",
            "clobbers": [
                "SQLitePlugin"
            ]
        },

plugins>android json

 "cordova-sqlite-storage": {
            "PACKAGE_NAME": "com.ehshsh.hdjhsdh"
        },

same error with prod tag. Without prod tag it is working fine

1 Like

got the issue. was injecting the provider but and sqlite db creation code was out of platform ready .

what does “out of platform ready” means?

cordova platform was not ready

Where exactly did you write this.platform.ready().then(() =>{...}) (if you wrote it)?

I was also facing this issue in Ionic 3 Application in production only.
Plugins installed were App Versiong and AdMob Free
I just wrapped my methods in Platform ready then it was Resolved!!!
I given my comparison code in this link

For me mediacapture plugin is working fine with ionic cordova build android and ionic cordova run android. But it is showing plug in not installed error in web build using IONIC GIT.

Please help me

is work for me but i call plugin before the plaform ready.

https://www.freakyjolly.com/resolve-plugin_not_installed-issue-in-ionic-3-4-applications/

I am calling all the Cordova plugins inside the platform ready method only. For me the issue is with related to media capture plugin which is working fine in android build,play store, iOS build… But it is showing plugin not installed error when using ionic webdeploy in both android and iOS version. Please help me to resolve the issue…

Please find reply I received from IONIC team regarding this query…

Bryant Feld (Ionic Support)

Apr 24, 8:18 AM CDT

Hello Anoop,

Only non-binary changes can be pushed via live deploy (HTML/CSS/JS). Anything that changes the binary at the native level would require you to push a new release to the app store.

Thank you!
Bryant Feld | Developer Support Engineer | Support Center