Skip to content

Commit

Permalink
Merge cdf83bf into 8efda50
Browse files Browse the repository at this point in the history
  • Loading branch information
phjudge authored Dec 29, 2021
2 parents 8efda50 + cdf83bf commit 44a8466
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ private Bundle toBundle(ReadableMap readableMap) {
((Bundle) item).putInt(FirebaseAnalytics.Param.QUANTITY, (int) number);
}
}
if (bundle.containsKey(FirebaseAnalytics.Param.EXTEND_SESSION)) {
double number = bundle.getDouble(FirebaseAnalytics.Param.EXTEND_SESSION);
bundle.putLong(FirebaseAnalytics.Param.EXTEND_SESSION, (long) number);
}
return bundle;
}
}
4 changes: 4 additions & 0 deletions packages/analytics/ios/RNFBAnalytics/RNFBAnalyticsModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ - (NSDictionary *)cleanJavascriptParams:(NSDictionary *)params {
}];
newParams[kFIRParameterItems] = [newItems copy];
}
NSNumber *extendSession = [newParams valueForKey:kFIRParameterExtendSession];
if ([extendSession isEqualToNumber:@1]) {
newParams[kFIRParameterExtendSession] = @YES;
}
return [newParams copy];
}

Expand Down

0 comments on commit 44a8466

Please sign in to comment.