Skip to content

Conversation

@sunitaprajapati89
Copy link
Contributor

No description provided.

Sunita Prajapati added 3 commits October 27, 2025 19:30
- added unit test cases
- refactored plugin code to be in sync with swift code
Copy link
Contributor

@wenxi-zeng wenxi-zeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

implementation mostly correct, but missing saveSessionData on a few places. probably cleaner to do the following:

  1. write a function (or make a property) for eventSessionId. every time it is updated, update it to storage. you only want to update eventSessionId to storage.
  2. write a function (or make a property) for lastEventTime. every time it is updated, update it to storage. you only want to update lastEventTime to storage.
  3. you no longer need saveSessionData once you did 1 & 2

…Event_Time to automatic update to storage

- Added new properties
- Modified persistent test cases
this.lastEventTime = -1;
await AsyncStorage.removeItem(SESSION_ID_KEY);
await AsyncStorage.removeItem(LAST_EVENT_TIME_KEY);
await AsyncStorage.multiRemove([
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: only need to remove sessionId, since eventSessionId and lastEventTime are set to -1 by the setter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants