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

The app crashes when trying to close the app #17

Closed
Somnus007 opened this issue Dec 14, 2021 · 7 comments
Closed

The app crashes when trying to close the app #17

Somnus007 opened this issue Dec 14, 2021 · 7 comments
Assignees

Comments

@Somnus007
Copy link

Somnus007 commented Dec 14, 2021

Versions:
Device OS version: Android 9
React native version: 0.66.3
@alan-ai/alan-sdk-react-native: 1.10.0

Reproduce steps:

  1. Create a new react native project
  2. Implement the most basic Alan integration: https://alan.app/docs/client-api/cross-platform/react-native/
  3. Run the project on the localhost or run a release version of the demo app
  4. Open the app and wait for Alan to finish loading without any other actions
  5. Close the application, the application will crash (Not every time, please try a few more times)

Screenshot_2021-12-14-13-34-03-361_com miui bugre

@snyuryev snyuryev self-assigned this Dec 14, 2021
@snyuryev
Copy link
Contributor

Hey @Somnus007 we will try to reproduce it.

@snyuryev
Copy link
Contributor

Hey @Somnus007 What is device model are you using?

@Somnus007
Copy link
Author

Redmi 6 Pro

Screenshot_2021-12-16-09-45-45-917_com android se

@Somnus007
Copy link
Author

This screen recording video may be helpful.

Screenrecorder-2021-12-21-10-31-20-154.mp4

@snyuryev
Copy link
Contributor

@Somnus007 We have a new release v 1.11.0
Please take a look - that should resolve this issue.

@Somnus007
Copy link
Author

@snyuryev Awesome! I just did a quick test with the new version (v1.11.0) and the app didn't crash when I tried to close it.

But I found another problem, when developing, the Alan button will cause a problem with the hot reload of react native. Steps to reproduce the problem:

  1. Create a new react native project
  2. Implement the most basic Alan integration: https://alan.app/docs/client-api/cross-platform/react-native/
  3. Run the project on the localhost
  4. Open the app and wait for Alan to finish loading without any other actions
  5. Change something in your code (such as adding a line of text) to trigger a hot reload
  6. You will find that the "refreshing..." prompt will pop up twice in a row, and then the app will get stuck

@snyuryev
Copy link
Contributor

@Somnus007 Glad that new release resolved the issue.
I created separate task for new issue - #18

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