forked from gardun0/flutter_pusher_beams
-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
When I use the following method:
await beams.setUserId(
userId,
provider,
(String? error) {
debugPrint('Error setting user id');
},
);
Everything works as expected - the notifications are consistently received. However, an error appears in the console:
======== Exception caught by services library ======================================================
The following RangeError was thrown during a platform message callback:
RangeError (index): Invalid value: Valid value range is empty: 0
When the exception was thrown, this was the stack:
#0 _Array.[] (dart:core-patch/array.dart:10:36)
#1 PusherBeams.handleCallback (package:pusher_beams/pusher_beams.dart:336:22)
#2 CallbackHandlerApi.setup.<anonymous closure> (package:pusher_beams_platform_interface/method_channel_pusher_beams.dart:430:15)
#3 BasicMessageChannel.setMessageHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:214:49)
#4 _DefaultBinaryMessenger.setMessageHandler.<anonymous closure> (package:flutter/src/services/binding.dart:393:35)
#5 _invoke2 (dart:ui/hooks.dart:183:13)
#6 _ChannelCallbackRecord.invoke (dart:ui/channel_buffers.dart:40:5)
#7 _Channel.push (dart:ui/channel_buffers.dart:130:31)
#8 ChannelBuffers.push (dart:ui/channel_buffers.dart:326:17)
#9 PlatformDispatcher._dispatchPlatformMessage (dart:ui/platform_dispatcher.dart:664:22)
#10 _dispatchPlatformMessage (dart:ui/hooks.dart:86:31)`
I have attempted to find a solution, but it seems to be an issue with the library itself.
1encore, CoolDude53 and ayyoub-coder
Metadata
Metadata
Assignees
Labels
No labels