Skip to content

[Bug]: for plugins the removeAllListeners function does not exist on iOS #7435

@JanMisker

Description

@JanMisker

Capacitor Version

[warn] The bundledWebRuntime configuration option has been deprecated. Can be safely deleted.
💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 6.0.0
@capacitor/core: 6.0.0
@capacitor/android: 6.0.0
@capacitor/ios: 6.0.0

Installed Dependencies:

@capacitor/cli: 6.0.0
@capacitor/core: 6.0.0
@capacitor/ios: 6.0.0
@capacitor/android: 6.0.0

[success] iOS looking great! 👌
[success] Android looking great! 👌

Other API Details

% npm --version       
10.5.0
% node --version
v18.20.2
% pod --version
1.15.2

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

On iOS the removeAllListeners() function on plugins is undefined, whereas on Android it exists as expected.
I reproduced for PushNotifications but also checked it via console for built-in plugins like Camera.

Maybe has to do with this: https://capacitorjs.com/docs/updating/plugins/6-0#remove-removealllisteners-method

Expected Behavior

The removeAllListeners() function should work the same on iOS and Android.

Project Reproduction

https://github.com/JanMisker/TestPushNotifRemoveAll

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions