INNER CODE UNIT · Dart
setOnesignalUserID
RevenueCat/purchases-flutter · lib/purchases_flutter.dart:997
static Future<void> setOnesignalUserID(String onesignalUserID) =>
_channel.invokeMethod(
'setOnesignalUserID',
{'onesignalUserID': onesignalUserID},
);
/// Subscriber attribute associated with the Singular Device ID (SDID) for the
/// user. Required for the RevenueCat Singular integration when using
/// Singular's Event Endpoint V2.
///
/// The SDID is generated by the Singular SDK and cannot be collected by
/// [collectDeviceIdentifiers], so it has to be forwarded by the app.
///
/// [singularDeviceID] Empty String or null will delete the subscriber attribute.
static Future<void> setSingularDeviceID(String singularDeviceID) =>
_channel.invokeMethod(
'setSingularDeviceID',
{'singularDeviceID': singularDeviceID},