Ionic5 Capacitor AppRate does not install

I am trying to include AppRate in my app following the instructions

npm install cordova-plugin-apprate npm install @ionic-native/app-rate ionic cap sync 

but I get

⚡️ [warn] - Native: tried calling AppRate.preferences, but the AppRate plugin is not installed. ⚡️ [warn] - Install the AppRate plugin: 'ionic cordova plugin add cordova-plugin-apprate' 

when calling AppRate.

The package is in the iOS project path

ll ios/capacitor-cordova-ios-plugins/sources/CordovaPluginApprate/ total 16 -rw-r--r-- 1 me staff 1.2K Jun 27 09:00 CDVAppRate.h -rw-r--r-- 1 me staff 3.8K Jun 27 09:00 CDVAppRate.m 

Usually the nearly identical instructions how to install native plugins would work. This is the first that they are

Here's how I call it in my code

import { AppRate } from '@ionic-native/app-rate/ngx'; ... providers: [AppRate], ... showAppRate(){ this.appRate.preferences.storeAppURL = { ios: 'ID', android: 'LINK' }; this.appRate.promptForRating(true); } 

Not doing anything different... Is it missing in the build process somehow? How could I check that?

2

Related questions 1 Ionic - Capacitor build 0 error building `ionic-angular` app with `capacitor` 5 Cannot find module '@capacitor/core'.ts(2307) Related questions 1 Ionic - Capacitor build 0 error building `ionic-angular` app with `capacitor` 5 Cannot find module '@capacitor/core'.ts(2307) 27 Ionic invalid package name __ngcc_entry_points__.json 1 Ionic 5 w/ Capacitor 'plugin_not_installed' 1 Capacitor: Unable to load capacitor.config.json 0 Ionic Capacitor - missing build command 12 No such module 'Capacitor' in AppDelegate.swift 1 Not able to integrate ionic with capacitor , npm throws error 3 Capacitor CLI Version Error in Ionic. What to do? Load 7 more related questions Show fewer related questions

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like