Comments (6)
The provided app doesn't include any removeAllListeners()
call, can you update it?
Are you sure you updated correctly? looks like you updated your plugins to Capacitor 6 but you are still using @capacitor/ios
5.x.
from capacitor.
Sorry my bad I wasn't using the src dir, I modified the repository to show the issue. I just put everything in src/index.html
.
I do use the 6 version of ios, as you can see in the package.json
.
Below screenshot of what happens when running on iOS vs. Android emulator
from capacitor.
This issue has been labeled as type: bug
. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.
from capacitor.
Oh, yeah, since you changed the sample to not import the plugin, the common methods like removeAllListeners
don't get generated since that's generated from javascript.
I guess we could generate it from native too as we do for addListeners
so it's available even if the plugin is not imported.
But if you import the plugin, the removeAllListeners
method is available and works as expected, the problem is just a matter of generating method for being accessible from Capacitor.Plugins.PluginName
, which is technically deprecated.
from capacitor.
One of our projects is really old and "vanilla" javascript, not using modules. So we'd have to find a way to include that generated plugin code without imports.
Still, isn't it strange that that same sample project, so without importing the plugin, does seem to work on Android? In the sense that the function is not undefined as you can see in the 2nd screenshot.
from capacitor.
This is an iOS issue only, on Android the plugins methods have annotations that auto generate the javascript and removeAllListeners
is one of the base plugin class methods, but on iOS no such thing exists, so they have to be generated programmatically.
from capacitor.
Related Issues (20)
- [Bug]: new android plugin fails when 3rd party library used HOT 1
- [Bug]: android permissions confusing HOT 1
- [Feature]: Http plugin: Support ArrayBuffer as request body and response HOT 3
- [Bug]: Sending TypedArray as fetch body gets JSON.stringified HOT 3
- [Bug]: CapacitorHttp post return data is wrong HOT 3
- ios Build failed HOT 2
- [Feature]: expose `methodName` via `CAPPluginCall` HOT 1
- [Bug]: Update CapacitorHttp "Large File Support" doc, fix Filesystem.downloadFile() doc HOT 2
- [Feature]: Update CapacitorHttp "Large File Support" doc
- [Feature]: material you themeing HOT 1
- [Bug]: Migration to version 6 fails to update gradle wrapper files HOT 2
- [Bug]: Scroll position not restored when navigating back HOT 1
- [Feature]: Provide an iOS privacy manifest compliant version of the device plugin HOT 1
- CapacitorHttp plugin is not accepting Formdata for image upload[Bug]: HOT 7
- [Bug]: Focus is reset to the first focus element when put the focus by physical keyboard and rotate the screen HOT 1
- [Bug]: Focus is reset to the first focus element when put the focus by physical keyboard and rotate the screen
- [Bug]: @capacitor/google-maps "Error calling method create on plugin CapacitorGoogleMaps: No method found." on iOS HOT 1
- Creating a Cross-Platform Library with Capacitor for Android and iOS Integration
- [Feature]: how to do ssl pinning?
- [Feature]: How to output logs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capacitor.