apla / me.apla.cordova.app-preferences

App preferences plugin for cordova
Apache License 2.0
201 stars 209 forks source link

Add support for Cordova 9.0 #147

Open jegesh opened 5 years ago

jegesh commented 5 years ago

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:

Toolchain:

Platforms affected: Probably all, only tried with iOs

What the scope of your problem:

NemSavic commented 5 years ago

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

sprengerst commented 4 years ago

PUSH

warrenonedge commented 4 years ago

Is there any update on this?

warrenonedge commented 4 years ago

Thanks. This could be extremely helpful.

On Wed, Jul 29, 2020, 11:24 AM Joris Bertomeu notifications@github.com 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 .

mayursofbang4 commented 3 years ago

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