File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -98,13 +98,15 @@ class Instabug {
98
98
/// the SDK's UI.
99
99
static void start (
100
100
String token, List <InvocationEvent > invocationEvents) async {
101
- final List <String > invocationEventsStrings = < String > [];
102
- invocationEvents.forEach ((e) {
103
- invocationEventsStrings.add (e.toString ());
104
- });
105
- final List <dynamic > params = < dynamic > [token, invocationEventsStrings];
106
- await _channel.invokeMethod <Object >(
107
- 'startWithToken:invocationEvents:' , params);
101
+ if (Platform .isIOS) {
102
+ final List <String > invocationEventsStrings = < String > [];
103
+ invocationEvents.forEach ((e) {
104
+ invocationEventsStrings.add (e.toString ());
105
+ });
106
+ final List <dynamic > params = < dynamic > [token, invocationEventsStrings];
107
+ await _channel.invokeMethod <Object >(
108
+ 'startWithToken:invocationEvents:' , params);
109
+ }
108
110
}
109
111
110
112
/// Shows the welcome message in a specific mode.
You can’t perform that action at this time.
0 commit comments