Closed jiebo closed 1 month ago
Hey @jiebo,
Thanks for raising this issue.
I investigated this issue, and it appears to be caused by the storage permission not being granted. The problem occurs right when the Rudder Android SDK initialization starts.
For now, could you please try the following steps:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Additionally, I would like to clarify a few points:
Hey @jiebo,
Could you please provide the information requested above?
Hi @1abhishekpandey, sorry for the delayed response. We updated the Adapty SDK version to 1.25.0 but the issue is still persisting. Also, we already have the WRITE_EXTERNAL_STORAGE
permission added.
For the next few points you requested:
For what it's worth, since the call site is within Rudderstack's code, is it possible to simply try-catch the exception?
Hey @jiebo,
We were also considering catching this exception, as you mentioned, since we haven't been able to reproduce the crash on any simulator devices. We will plan to work on this fix soon.
Meanwhile can you please help us with one more info:
Hello, I don't think it's possible to know the percentage of events affected by this crash since we don't know how many events we will get actually get without the crash. That being said, I don't suppose it to be a huge number. However, because it occurs in the background and silently, this particular crash accounts for more than half of all our recorded crashes.
Hey @jiebo,
We have released a fix in v1.25.1. Please try it and let us know if it successfully resolves your issue.
Hey @jiebo, Have you had a chance to try the fix? If so, could you please let us know the results?
Hi @1abhishekpandey, sorry for the late response. Yes, we've updated to the new version and we can confirm that the issue is resolved, please close this issue as needed. Thanks for the quick turnaround!
Describe the bug From our Firebase Crashlytics, we are seeing an issue that seems to be caused by
DefaultPersistence.getWritableDatabase
. Please check the stack trace below.Stack Trace
Over the past 7 days, we've recorded 43k crashes for 447 users. Here are the device details
Version of the Android SDK We're using 1.22.0 of the Rudderstack Android SDK.
Mobile device mode integration
SDK initialisation snippet
Check for Correct Usage of writeKey and dataPlaneUrl Events are flowing as expected