chemerisuk / cordova-plugin-app-review

Cordova plugin to review app
MIT License
40 stars 28 forks source link

IONIC core import is not available making it as custom plugin is a show stopper #12

Closed suraj234 closed 12 months ago

suraj234 commented 2 years ago

Hello There,

I have added the plugin to platforms but could not make use of this plugin since "Appreview" is not defined and getting below error,

"Uncaught TypeError: Cannot read property 'AppReview' of undefined"

This is because import from ionic-core/ @ionic-native is not available (for instance if you are using FIREBASEX plugin ususally import something like "import { FirebaseX } from '@ionic-native/firebase-x/ngx'")

so, used this approach by downloading the source code https://forum.ionicframework.com/t/how-to-use-cordova-custom-plugin-in-ionic/123858/3

But due to security reasons we could not go with the above mentioned solution.

Can you please let us know if there is anything exiting to be imported import from ionic-core/ @ionic-native.

And also it will be helpful when it is added on description, for a new guy like me.

Thanks