Open JackRam99 opened 1 year ago
Facing the same issue in our app after updating from 5.0.1 to 5.2.7 @JackRam99 Have you used "intent?.putExtra("branch_force_new_session", true)" in your code?
Have you used "intent?.putExtra("branch_force_new_session", true)" in your code? @BhagatRohan No ,I did not use it.
Having the same
Also, this is a duplicate of 900 issue
Can you make it a bit more priority cause apparently it's 20-25% of crashes right now? and not only me according to the task
private void extractAppLink(Uri data, Activity activity) {
// ***
// Save a state in the intent instance
Intent intent = new Intent(this, AnotherActivity.class);
intent.putExtra(Defines.IntentKeys.BranchLinkUsed.getKey(), true);
activity.setIntent(intent);
}
The issue is that you are trying to save a state in an Intent instance, which is not recommended. Consider using SharedPreferences or in-memory storage for such cases. Or, at least, you can copy the intent and do modifications. It appears that your library is attempting to save this state to the intent, which can be read by other code at a later moment.
Here's a small example:
Intent intent = new Intent(this, AnotherActivity.class);
intent.putExtra("key", "value");
startActivity(intent);
// Do not modify `intent.putExtra` here - it may lead to a `ConcurrentModificationException`.
In the example, it's advised not to modify intent.putExtra after calling startActivity to avoid potential issues like a ConcurrentModificationException.
Hope you'll include this fix to your lib in the next release
Good catch @catsoft , we'll take a look at your recommendations and see if we can get this in the next sprint.
Have you guys found a solution to this? We are experiencing a lot of crashes because of this issue.
We are also experiencing this issue in our app and it produces 40% of our overall crashes. It would be great to hear about progress on this
This is still a problem. it would help a lot if you could at least catch the issue in your code. Since the initialization is asynchronous we cannot catch it in the surrounding code
Describe the bug
We have gotten around ~300 crashes with the following stack trace.
SDK Version
5.2.7
Make and Model
Multiple Devices
OS
8.0, 10, 11, 12, 13