Skip to content

Commit 54b82b7

Browse files
fix: missing parts
1 parent 48be9d0 commit 54b82b7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/web/countly_flutter_plugin.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ class CountlyFlutterPlugin {
508508
segments = _extractMap(view, idxStart: 1);
509509
}
510510
// ignore list and segmentation might be sent
511-
Countly.track_view(viewName, null, segments.jsify()!);
511+
Countly.track_pageview(viewName, null, segments.jsify()!);
512512
}
513513

514514
String _getDeviceIDType(int type) {
@@ -579,7 +579,7 @@ class CountlyFlutterPlugin {
579579
'session_update': config['sessionUpdateTimerDelay'],
580580
'max_events': config['eventQueueSizeThreshold'],
581581
'queue_size': config['maxRequestQueueSize'],
582-
'force_post': config['httpPostForced'],
582+
'force_post': config['httpPostForced'] ?? false,
583583
'require_consent': config['shouldRequireConsent'],
584584
'salt': config['tamperingProtectionSalt'],
585585
};

lib/web/countly_sdk_web_interop.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class Countly {
3434
external static void remove_consent(JSAny consents);
3535

3636
// View Management
37-
external static void track_view(String viewName, JSArray? ignoreList, JSAny? segments);
3837
external static void track_pageview(String? page, JSArray? ignoreList, JSAny? segments);
3938

4039
// Crashes

0 commit comments

Comments
 (0)