@@ -210,15 +210,19 @@ extension TrackingManager: TrackingManagerType {
210
210
for project in projects {
211
211
if type == . identifyCustomer {
212
212
inAppMessageManager? . pendingShowRequests. removeAll ( )
213
- }
214
- switch Exponea . shared. flushingMode {
215
- case . immediate:
216
- try ? self . storeTrackEvent ( of: type, with: payload, trackingAllowed, within: project)
217
- Exponea . shared. flushingManager? . inAppRefreshCallback = {
218
- Exponea . shared. flushingManager? . inAppRefreshCallback = nil
219
- self . onEventCallback ( type, payload)
213
+ switch Exponea . shared. flushingMode {
214
+ case . immediate:
215
+ Exponea . shared. flushingManager? . inAppRefreshCallback = {
216
+ Exponea . shared. flushingManager? . inAppRefreshCallback = nil
217
+ try ? self . storeTrackEvent ( of: type, with: payload, trackingAllowed, within: project)
218
+ self . onEventCallback ( type, payload)
219
+ }
220
+ Exponea . shared. flushingManager? . flushData ( )
221
+ default :
222
+ try storeTrackEvent ( of: type, with: payload, trackingAllowed, within: project)
223
+ onEventCallback ( type, payload)
220
224
}
221
- default :
225
+ } else {
222
226
try storeTrackEvent ( of: type, with: payload, trackingAllowed, within: project)
223
227
onEventCallback ( type, payload)
224
228
}
0 commit comments