You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, the Capacitor Firebase Authnentication plugin uses the code property to forward the error code from the Firebase SDK to the WebView in addition to the error message. Currently a typecast has to be used to get the correct type of the property:
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 6.1.2
@capacitor/core: 6.1.2
@capacitor/android: 6.1.2
@capacitor/ios: 6.1.2
Installed Dependencies:
@capacitor/cli: 6.0.0
@capacitor/core: 6.0.0
@capacitor/android: 6.0.0
@capacitor/ios: 6.0.0
[success] iOS looking great! 👌
[success] Android looking great! 👌
Other API Details
No response
Platforms Affected
Current Behavior
The Capacitor Android/iOS SDK allow rejecting a call with a code of type string, see:
capacitor/android/capacitor/src/main/java/com/getcapacitor/PluginCall.java
Line 148 in f3239c4
However, the type of the
code
property of theCapacitorException
class only allows values of typeExceptionCode
, see:capacitor/core/src/util.ts
Line 29 in f3239c4
For example, the Capacitor Firebase Authnentication plugin uses the
code
property to forward the error code from the Firebase SDK to the WebView in addition to the error message. Currently a typecast has to be used to get the correct type of the property:Expected Behavior
The type of the
code
property should be of typeCapacitorException | string
.Project Reproduction
https://github.com/robingenz/capacitor-firebase-authentication-demo
Additional Information
No response
The text was updated successfully, but these errors were encountered: