In release mode, RoamCallback.onFailure is being called on Roam.getUser
luisfelipeas5 opened this issue · 2 comments
luisfelipeas5 commented
While I'm testing Roam.getUser
on android in debug mode, everything is fine. But, when I built the app in the release mode, some exceptions started to be thrown.
I edited the RoamFlutterPlugin.java
to return the error of Roam.getUser
for the flutter side using MethodChannel.Result as follow:
@Override
public void onFailure(RoamError roamError) {
result.error(
"roam_" + roamError.getCode(),
roamError.getMessage(),
null
);
}
So I saw on my logs that roamError.getCode()
returns "GS402" and roamError.getMessage()
returns JSON response error
. But, I couldn't discover anything beyond that.
Is there anything else that I can do?
luisfelipeas5 commented
Any news?
luisfelipeas5 commented
This was resolved adding this rule to proguard-rules.pro
:
-keep class org.json.** { *; }