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}}');
| Parameter | Type | Description |
|---|---|---|
projectKey | String? | Project key to delete |
segmentKey | String? | 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.
| Case | projectKey | segmentKey | Deletion Scope |
|---|---|---|---|
| 1 | O | O | Deletes only the entry key for the specified segment in the project |
| 2 | O | X | Deletes all entry keys for all segments in the specified project |
| 3 | X | X | Deletes 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();