Closed rishabh876 closed 1 year ago
We appreciate you letting us know about this. We are looking into it and we will update on our findings.
@rishabh876 After careful investigation, it appears that the use of the commit() method is necessary for a particular edge case in which the apply() method does not produce the expected outcome. As this flow is not often called upon, it should not have a substantial impact on performance. The remainder of our code utilizes the apply() method.
We've considered refactoring the code and will take this into account for future updates. I've added it to the backlog but it is not likely to be part of our roadmap for the next few releases. For the time being, we will be closing this ticket.
We appreciate your input and sharing your insights. Thank you once again.
Platform + Version Android 13
SDK Version 2.22.+ Framework Native
Describe the bug On enabling Strict Mode on android. It is noticed that Pendo is violating disk read/write policy by using sharedPreference.commit which does all IO operation on main thread synchronously.
To Reproduce Steps to reproduce the behavior:
Expected behavior MainThread should not be used for IO operation. While using shared preference, instead of commit(), apply() should be used.
Logs
Sample Code -NA
Additional context -NA