Skip to content

Commit f9e030a

Browse files
author
Ali Abdelfattah
authored
Fix iOS initial invocation events (Instabug#148)
* Update InstabugFlutterPlugin.m * Update CHANGELOG.md
1 parent 7b54f6e commit f9e030a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## master
2+
3+
* Fixes an issue with iOS invocation events causing the welcome message not to show.
4+
15
## v9.1.7 (2020-10-01)
26

37
* Adds support for the Azerbaijani locale

ios/Classes/InstabugFlutterPlugin.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,13 @@ + (void)startWithToken:(NSString *)token invocationEvents:(NSArray*)invocationEv
6868
}
6969

7070
NSDictionary *constants = [self constants];
71-
NSInteger invocationEvents = IBGInvocationEventNone;
71+
NSInteger invocationEvents = 0;
7272
for (NSString * invocationEvent in invocationEventsArray) {
7373
invocationEvents |= ((NSNumber *) constants[invocationEvent]).integerValue;
7474
}
75+
if (invocationEvents == 0) {
76+
invocationEvents = IBGInvocationEventNone;
77+
}
7578
[Instabug startWithToken:token invocationEvents:invocationEvents];
7679
}
7780

0 commit comments

Comments
 (0)