Android: TypeError: cordova.fireDocumentEvent is not a function
See original GitHub issueDescription of the problem:
Fresh project via npx @capacitor/cli create
.
After npx cap add android
npx cap open android
, app runs in emulator, displaying error.
cordova.fireDocumentEvent is not a function
TypeError: cordova.fireDocumentEvent is not a function
at <anonymous>:1:9
Affected platform
- Android
- iOS
- electron
- web
OS of the development machine
- Windows
- macOS
- linux
Other information:
Capacitor version:
"dependencies": {
"@capacitor/android": "^1.0.0-beta.22",
"@capacitor/cli": "^1.0.0-beta.22",
"@capacitor/core": "^1.0.0-beta.22"
}
node version: v10.15.3
npm version: 6.4.1
CocoaPods version:
Steps to reproduce:
Link to sample project:
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Use Capacitor for Camera Plugin but get error regarding ...
When I try the camera after running android on an emulator or a real device, ... fireDocumentEvent is not a function TypeError: cordova....
Read more >Top 5 cordova Code Examples - Snyk
Learn more about how to use cordova, based on cordova code examples created from the most popular ways it is used in public...
Read more >cordova Uncaught TypeError: Object(...) is not a function
I have Created my custom plugin. Created its Wrapper using following steps. Cloned the ionic native wrapper from
Read more >Cordova GoogleMaps plugin for iOS and Android (version 2.3.8)
Fix: Uncaught TypeError: evt.target.hasAttribute is not a function when device is rotated. Fix: marker.setDisableAutoPan() does not work on ...
Read more >Events - Apache Cordova
To run when locked on iOS 4, this setting does not matter. resume event. When called from a resume event handler, interactive functions...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s not a cordova plugin, just the wrapper. You have to npm install cordova-plugin-file
thanks, solved the issue