Capacitor doesn't have Platform API #3712
Unanswered
Sampath-Lokuge
asked this question in
Q&A
Replies: 1 comment 4 replies
-
If you don't want to use Ionic, then you can't use platform because it's an Ionic feature. If you just want to wait for
Anyway, in Capacitor you don't need to wait for |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I develop an Angular and Capacitor app. i.e. No Ionic here
How can I check this on Native platform await this.platform.ready();. Because I need to use the Cordova plugin on App startup like so.
app.component.ts
So what is the alternative here?
I know Ionic/Angular has this https://ionicframework.com/docs/angular/platform. But I do not use Ionic. Any clue?
ionic info
[WARN] Error loading @ionic/angular package.json: Error: Cannot find module '@ionic/angular/package'
[WARN] Error loading @ionic/angular-toolkit package.json: Error: Cannot find module '@ionic/angular-toolkit/package'
Ionic:
Ionic CLI : 6.11.11 (C:\Users\Sampath\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : not installed
@angular-devkit/build-angular : 0.1001.6
@angular-devkit/schematics : 10.1.6
@angular/cli : 10.1.6
@ionic/angular-toolkit : not installed
Capacitor:
Capacitor CLI : 2.4.2
@capacitor/core : 2.4.2
Utility:
cordova-res : 0.14.0
native-run : 1.2.1
System:
NodeJS : v12.13.1 (C:\Program Files\nodejs\node.exe)
npm : 6.12.1
OS : Windows 10
Beta Was this translation helpful? Give feedback.
All reactions