Skip to content

IterableEmbeddedView has no empty public constructor #968

@nseidman-play2pay

Description

@nseidman-play2pay

✍️ 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

  1. Use IterableEmbeddedView
  2. Close app, FragmentManager triggers saved state
  3. 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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions