Skip to content

Commit cdc6975

Browse files
Merge pull request #1 from Helmet-Limited/develop
Fix iOS setUserId callback bug pusher#44
2 parents 40ba423 + 2d8d43f commit cdc6975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pusher_beams/lib/pusher_beams.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ class PusherBeams extends PusherBeamsPlatform with CallbackHandlerApi {
333333
callback((args[0] as List<Object?>).cast<String>());
334334
return;
335335
case "setUserId":
336-
callback(args[0] as String?);
336+
callback(args.isEmpty ? null : args[0] as String?);
337337
return;
338338
case "onMessageReceivedInTheForeground":
339339
callback((args[0] as Map<Object?, Object?>));

0 commit comments

Comments
 (0)