identifyUser method

Future<void> identifyUser({
  1. required String userId,
  2. UserProfile? userProfile,
})

Associate the given user information with the current device.

Useful for targeting user-centric push notification campaigns.

Implementation

Future<void> identifyUser({
  required String userId,
  UserProfile? userProfile,
}) => identifyCall(
  PushNotificationsCategoryMethod.identifyUser,
  () => defaultPlugin.identifyUser(userId: userId, userProfile: userProfile),
);