Skip to content

Commit 7f1af77

Browse files
Merge branch 'fix/android-start-api' into merge_fix/android-start-api
2 parents 0bd815c + c308916 commit 7f1af77

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
* Adds support for overriding the replies notification string values through `repliesNotificationTeamName`, `repliesNotificationReplyButton`, `repliesNotificationDismissButton`
88
* Removes the use of `android:requestLegacyExternalStorage` attribute on Android
9-
109
## v9.1.8 (2021-02-17)
1110

1211
* Fixes an issue with iOS invocation events causing the welcome message not to show.

lib/Instabug.dart

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,13 @@ class Instabug {
102102
/// the SDK's UI.
103103
static Future<void> start(
104104
String token, List<InvocationEvent> invocationEvents) async {
105-
final List<String> invocationEventsStrings =
106-
invocationEvents.map((e) => e.toString()).toList(growable: false);
107-
final List<dynamic> params = <dynamic>[token, invocationEventsStrings];
108-
await _channel.invokeMethod<Object>(
109-
'startWithToken:invocationEvents:', params);
105+
if (Platform.isIOS) {
106+
final List<String> invocationEventsStrings =
107+
invocationEvents.map((e) => e.toString()).toList(growable: false);
108+
final List<dynamic> params = <dynamic>[token, invocationEventsStrings];
109+
await _channel.invokeMethod<Object>(
110+
'startWithToken:invocationEvents:', params);
111+
}
110112
}
111113

112114
/// Shows the welcome message in a specific mode.

0 commit comments

Comments
 (0)