File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
android/src/main/java/com/devsonflutter/reflex Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 2222import com .devsonflutter .reflex .notification .ReflexNotification ;
2323import com .devsonflutter .reflex .permission .NotificationPermission ;
2424
25+ import java .util .Collections ;
2526import java .util .HashMap ;
2627import java .util .List ;
28+ import java .util .Map ;
2729
2830import io .flutter .Log ;
2931import io .flutter .plugin .common .EventChannel ;
@@ -44,7 +46,12 @@ public class EventCallHandler implements EventChannel.StreamHandler {
4446 @ RequiresApi (api = Build .VERSION_CODES .JELLY_BEAN_MR2 )
4547 @ Override
4648 public void onListen (Object arguments , EventChannel .EventSink events ) {
47- Log .w (TAG ,arguments .toString ());
49+ // List<Map<String, String>> list = (List<Map<String, String>>) arguments;
50+ List <Map <String , Object >> list = (List <Map <String , Object >>) arguments ;
51+
52+ Map <String , Object > map = (Map <String , Object >) list .get (0 );
53+ Map <String , String > autoReply = (Map <String ,String >) map .get ("autoReply" );
54+
4855 mEventSink = events ;
4956 listenNotification (mEventSink );
5057 Log .w (TAG ,"Listening Reflex Stream..." );
You can’t perform that action at this time.
0 commit comments