Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backPressed results in app Crash #1777

Open
faisalmohd83 opened this issue Mar 11, 2021 · 4 comments
Open

backPressed results in app Crash #1777

faisalmohd83 opened this issue Mar 11, 2021 · 4 comments

Comments

@faisalmohd83
Copy link

faisalmohd83 commented Mar 11, 2021

My native Android app crashes when returns from miniapp UI.
Does it cause any missing dependencies?

crash trace below:

2021-03-11 16:23:00.222 12283-12283/tech.essemsys.enpocapp E/AndroidRuntime: FATAL EXCEPTION: main
Process: tech.essemsys.enpocapp, PID: 12283
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.facebook.react.ReactDelegate.onBackPressed()' on a null object reference
at com.facebook.react.ReactActivityDelegate.onBackPressed(ReactActivityDelegate.java:140)
at com.walmartlabs.ern.container.ElectrodeMiniAppActivity.onBackPressed(ElectrodeMiniAppActivity.java:96)
at android.app.Activity.onKeyUp(Activity.java:3641)
at com.walmartlabs.ern.container.ElectrodeMiniAppActivity.onKeyUp(ElectrodeMiniAppActivity.java:113)
at android.view.KeyEvent.dispatch(KeyEvent.java:2825)
at android.app.Activity.dispatchKeyEvent(Activity.java:3958)
at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:367)
at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:5413)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5281)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4788)

@faisalmohd83
Copy link
Author

faisalmohd83 commented Mar 15, 2021

@friederbluemle any sample app (iOS/Android) showcases Navigation between Native <> MiniApp?

@deepueg
Copy link
Contributor

deepueg commented Mar 15, 2021

@faisalmohd83 Thanks for reporting this. ElectrodeMiniAppActivity is deprecated and replaced with ElectrodeBaseActivity. Can you please update your activity to extend this ?

Meanwhile, I will keep this issue open and remove ElectrodeMiniAppActivity reference from the container.

@faisalmohd83
Copy link
Author

@deepueg Issue caused while trying Navigation between MoviesListMiniApp and MovieDetailsMiniApp. Does it mean to use any particular branches of the above-said miniapps?

@faisalmohd83
Copy link
Author

@faisalmohd83 Thanks for reporting this. ElectrodeMiniAppActivity is deprecated and replaced with ElectrodeBaseActivity. Can you please update your activity to extend this ?

Meanwhile, I will keep this issue open and remove ElectrodeMiniAppActivity reference from the container.

@deepueg when to expect the replacement fix for ElectrodeMiniAppActivity?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants