-
Notifications
You must be signed in to change notification settings - Fork 33
Description
✍️ Issue Description
Android fragments require an empty public constructor to properly be reinflated by the FragmentManager when resuming from a saved state, or the back stack. IterableEmbeddedView does not contain an empty public constructor, instead it passes arguments into the constructor when the arguments need to be passed using fragment arguments. Please rebuild IterableEmbeddedView using standard Android design practices so the IterableEmbeddedView can be used in a production environment without crashing.
📋 Steps to Reproduce
- Use IterableEmbeddedView
- Close app, FragmentManager triggers saved state
- Open app, IterableEmbeddedView has no empty public constructor. Fragment argument are not used at all in the implementation. Application crashes.
👤 Iterable orgId: play2pay
📦 Iterable SDK version: 3.6.2
📲 Android OS version: all
Stack trace: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.adfone.aditup.staging/com.adfone.cover.ui.account.AccountActivity}: androidx.fragment.app.Fragment$InstantiationException: Unable to instantiate fragment com.iterable.iterableapi.ui.embedded.IterableEmbeddedView: could not find Fragment constructor