[Bug]: HttpRequestHandler.java for Android has parseJSON Exception problem #7400
Labels
needs reply
needs reply from the user
needs reproduction
needs reproducible example to illustrate the issue
Capacitor Version
馃拪 Capacitor Doctor 馃拪
Latest Dependencies:
@capacitor/cli: 5.7.4
@capacitor/core: 5.7.4
@capacitor/android: 5.7.4
@capacitor/ios: 5.7.4
Installed Dependencies:
@capacitor/cli: 5.7.4
@capacitor/android: 5.7.4
@capacitor/core: 5.7.4
@capacitor/ios: 5.7.4
[success] iOS looking great! 馃憣
[success] Android looking great! 馃憣
Other API Details
No response
Platforms Affected
Current Behavior
when get JSON-return from api in android and it contains 10 or more digits value( >2,147,483,647), it will 锟絧roduce java.lang.NumberFormatException problem.
Expected Behavior
in
https://github.com/ionic-team/capacitor/blob/main/android/capacitor/src/main/java/com/getcapacitor/plugin/util/HttpRequestHandler.java
there's parseJSON
maybe we can use BigInt or 锟絚hange the if regex part?
Project Reproduction
https://github.com/ionic-team/capacitor/blob/main/android/capacitor/src/main/java/com/getcapacitor/plugin/util/HttpRequestHandler.java
Additional Information
No response
The text was updated successfully, but these errors were encountered: