sendAttributes static method
Implementation
static Future<String?> sendAttributes(
String screenName,
Map<String, String> data,
) async {
try {
final result = await _channel.invokeMethod(
"sendAttributes",
{
"screenName": screenName,
"attributes": data,
},
);
// iOS old SDK → bool
if (result is bool) {
return result ? await sessionId : null;
}
// Android new SDK → sessionId
return result as String?;
} catch (e, s) {
_internalLog("sendAttributes failed", e, s);
return null;
}
}