me.apla.cordova.app-preferences icon indicating copy to clipboard operation
me.apla.cordova.app-preferences copied to clipboard

Add support for Cordova 9.0

Open jegesh opened this issue 5 years ago • 5 comments

Issue: When trying the install the plugin using Cordova v9.0, the following error is received:

Failed to install 'cordova-plugin-app-preferences': CordovaError: Using "requireCordovaModule" to load non-cordova module "path" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
    at Context.requireCordovaModule (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/Context.js:57:15)
    at module.exports (/Users/path/to/project/plugins/cordova-plugin-app-preferences/bin/before_plugin_install.js:6:14)

requireCordovaModule has been removed in this version of Cordova.

Environment

Plugin version:

  • released version:

Toolchain:

  • Cordova cli

Platforms affected: Probably all, only tried with iOs

What the scope of your problem:

  • Unable to install plugin

jegesh avatar Mar 26 '19 10:03 jegesh

I had the same issue and was able to resolve. I created a pull request with my fix: https://github.com/apla/me.apla.cordova.app-preferences/pull/148

NemSavic avatar Mar 29 '19 16:03 NemSavic

PUSH

sprengerst avatar Nov 28 '19 19:11 sprengerst

Is there any update on this?

warrenonedge avatar Jan 30 '20 15:01 warrenonedge

Thanks. This could be extremely helpful.

On Wed, Jul 29, 2020, 11:24 AM Joris Bertomeu [email protected] wrote:

For my needs, I forked this project, done some fixes relative to cordova 9 (0.99.4) issue and to another Ionic issue (0.99.6) ionic-team/ionic-cli#3014 https://github.com/ionic-team/ionic-cli/issues/3014. Here is NPM package I published https://www.npmjs.com/package/@icscorp/cordova-plugin-app-preferences

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/apla/me.apla.cordova.app-preferences/issues/147#issuecomment-665731005, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALHXQTGFSKFFB677CILHDTR6A5KBANCNFSM4HBMQOQQ .

warrenonedge avatar Jul 30 '20 12:07 warrenonedge

I am able to open the app preferences in IOS via Cordova plugin add https://github.com/myieye/me.apla.cordova.app-preferences but not working in android. Can anyone have a solution for this issue?

We are getting an error while clicking on the app preference icon - Class me.apla.cordova.AppPreferencesActivity not found. Please run preference generator.

cordova plugin add https://github.com/myieye/me.apla.cordova.app-preferences

mayursofbang4 avatar Jan 04 '21 12:01 mayursofbang4