Closed emilmammadov closed 1 year ago
I found where is the root of the issue. The issue is in PosthogFlutterPlugin.java
on identify()
function
private void identify(MethodCall call, Result result) {
try {
String userId = call.argument("userId");
HashMap<String, Object> propertiesData = call.argument("properties");
HashMap<String, Object> options = call.argument("options");
this.callIdentify(userId, propertiesData, options);
result.success(true);
} catch (Exception e) {
result.error("PosthogFlutterException", e.getLocalizedMessage(), null);
}
}
userId
property on Posthog().identify()
function is dynamic but Android platform requires String.
We can just change userId
property to accept only String to avoid developers doing the same mistake.
I'm using
When I review the events on the Posthog Dashboard it shows these areas for iOS users but not Android users.