Skip to main content
Version: 4.6.2-saas

Entry Key Invalidation Function

warning

The following content applies to iOS version 4.4.2 and above.

Overview

This document describes the function provided by the NetFUNNEL iOS agent for deleting entry keys stored in the application.

Entry Key Invalidation

The NetFUNNEL iOS agent saves keys in UserDefaults (app data) when a waiting state occurs. When using an entry pass, you can reuse the key to enter again without waiting. 'Entry Key Invalidation' is a feature used when you want to invalidate the entry key at a specific point in time, forcing the user to wait again.

Netfunnel.shared.nfClear('{{PROJECT_KEY}}', '{{SEGMENT_KEY}}');
ParameterTypeDescription
projectKeyString?Project key to delete
segmentKeyString?Segment key to delete
info

The scope of entry key deletion varies depending on the parameters provided. Depending on the combination of projectKey and segmentKey, the deletion can be by segment, by project, or for all data.

CaseprojectKeysegmentKeyDeletion Scope
1OODeletes only the entry key for the specified segment in the project
2OXDeletes all entry keys for all segments in the specified project
3XXDeletes all entry keys for all projects and segments
// Example 1: Remove only the entry key for segment "segKey_1234" in project "service_1"
Netfunnel.shared.nfClear("service_1", "segKey_1234");

// Example 2: Remove all entry keys for all segments in project "service_1"
Netfunnel.shared.nfClear("service_1", null);

// Example 3: Remove all entry keys for all projects and segments
Netfunnel.shared.nfClear();