Skip to content

Commit dbf740d

Browse files
TheBuggedYRNAli Abdelfattah
andauthored
[MOB-9934] Fix BugReporting.setInvocationEvents (#256)
* Fix `BugReporting.setInvocationEvents` * Update CHANGELOG.md Co-authored-by: Ali Abdelfattah <[email protected]> Co-authored-by: Ali Abdelfattah <[email protected]>
1 parent 48a580b commit dbf740d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Unreleased
2+
3+
* Fixes an issue with BugReporting.setInvocationEvents on iOS that always sets the event to none.
4+
15
## v11.0.0 (2022-07-20)
26

37
* Bumps Instabug native SDKs to v11

ios/Classes/InstabugFlutterPlugin.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ + (void)setEnabledAttachmentTypes:(NSNumber *)screenShot
491491
*/
492492
+ (void)setInvocationEvents:(NSArray *)invocationEventsArray {
493493
NSDictionary *constants = [self constants];
494-
NSInteger invocationEvents = IBGInvocationEventNone;
494+
NSInteger invocationEvents = 0;
495495
for (NSString * invocationEvent in invocationEventsArray) {
496496
invocationEvents |= ((NSNumber *) constants[invocationEvent]).integerValue;
497497
}

0 commit comments

Comments
 (0)