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

App always crashes when accessing from the notification area #95

Closed
patarapolw opened this issue Aug 10, 2020 · 12 comments
Closed

App always crashes when accessing from the notification area #95

patarapolw opened this issue Aug 10, 2020 · 12 comments
Labels
bug bugs; wait for 'approved' label to begin work status: approved issues where contributions are welcome

Comments

@patarapolw
Copy link

For about a week now, dev.to Android app always crashes when accessed from push message, i.e. Notification Area, on Vivo.

Actually, the first ever notification message is Wisdom engine "DEV Community" runtime exception. After I slided to hide that message, this error consistently happen.

To Reproduce

  1. A notification message is received.
  2. Click on the notification message
  3. App opens and dies without any visible UI or message
  4. However, app can still be accessed via clicking the icon. (And the notification count is still there.)

Expected behavior

No crashes.

Smartphone (please complete the following information):

  • Device: vivo1910
  • OS: Android version 10 / vivo ROM Funtouch OS_10
  • Version: 1.4.1
@maestromac
Copy link
Contributor

Hello @patarapolw can you try clearing the app's cache and storage and see if you can still reproduce this issue?

@patarapolw
Copy link
Author

patarapolw commented Aug 10, 2020

Now, it's even worse. It crashes upon trying to sign in both via GitHub and Twitter.

And reinstalling via Play Store doesn't help.

Is there a way to debug, probably via Android Studio or adb?

I am using website's PWA for the time being.

@maestromac maestromac added the bug bugs; wait for 'approved' label to begin work label Aug 10, 2020
@fdocr
Copy link
Contributor

fdocr commented Aug 10, 2020

Thank you for the report @patarapolw! I'm now seeing this problem too on Android 8. After clearing my data I didn't see the expected result when tapping on a PN either, but I didn't encounter the login problem you mention.

AFAIK it isn't straightforward to debug the release build from the store. A viable way to debug this is to boot up a local forem install with Push Notifications configured (you'll need a free Pusher Beams & Firebase account) in order to test with a debug version of the app, which requires some setup to get everything running properly.

We have a few issues I'm hoping to sort out soon and this is an important one.

@fdocr fdocr added the hacktoberfest recommended issues for hacktoberfest participants label Sep 30, 2020
@fdocr fdocr added status: approved issues where contributions are welcome and removed hacktoberfest recommended issues for hacktoberfest participants labels Nov 8, 2020
@bluetoothfx
Copy link
Contributor

@fdoxyz would you please share how should I setup complete local development environment for this issue. I guess I need to generate notification from Web app. Please guide me how should I make an environment which I can debug with.
BTW I have windows based development environment + I would like to go with Docker if there is any. Thanks.

@fdocr
Copy link
Contributor

fdocr commented Nov 23, 2020

Absolutely @bluetoothfx! Here's the steps with a few links for step-by-step guides:

  1. Spin up the local web app. This is the guide for the container installation: https://docs.forem.com/installation/containers/
  2. Since you'll be working on your device I can recommend using ngrok to easily expose your local app
  3. The Push Notifications are sent using Pusher Beams. This is the step by step installation setup for that (you'll only need to setup for Android): https://docs.forem.com/backend/pusher/#mobile-push-notifications
  4. You'll want to put the google-services.json file in the app directory of the Android project and update both gradle.properties and CustomWebViewClient (add to overrideUrlList) with your custom URL

Let me know if you have any issues along the way :)

@sami1236751
Copy link

I have an app crashing problem, many of app are crashing my phone what can i fo this?

@sami1236751
Copy link

all important app are crashed my phone i think vivo is a very unfit phone.

@archanamm95
Copy link

Am using iqoo phone .Now when ever I open whatspp it will automatically close and back to home page

@bluetoothfx
Copy link
Contributor

Am using iqoo phone .Now when ever I open whatspp it will automatically close and back to home page

Could you please attach your finds? e.g video. Thanks

@bluetoothfx
Copy link
Contributor

Absolutely @bluetoothfx! Here's the steps with a few links for step-by-step guides:

  1. Spin up the local web app. This is the guide for the container installation: https://docs.forem.com/installation/containers/
  2. Since you'll be working on your device I can recommend using ngrok to easily expose your local app
  3. The Push Notifications are sent using Pusher Beams. This is the step by step installation setup for that (you'll only need to setup for Android): https://docs.forem.com/backend/pusher/#mobile-push-notifications
  4. You'll want to put the google-services.json file in the app directory of the Android project and update both gradle.properties and CustomWebViewClient (add to overrideUrlList) with your custom URL

Let me know if you have any issues along the way :)

Dear @fdoxyz it has been a year but I didn't manage schedule for set the environment to reproduce the issue. I am sorry from my heart. If anyone interested or team want to take action to solve please go ahead.

@fdocr
Copy link
Contributor

fdocr commented Dec 7, 2021

No worries @bluetoothfx, thank you for taking the time to look into it in the first place.

We are planning to sunset the DEV Android app (just like we did for iOS) soon (see #138) so it feels like fixing this bug won't be needed in the end.

If you or anyone following this thread would like to receive private beta access feel free to share your DEV username and we'll reach out for this.

Thank you everyone for being a part of this project and I hope the same level of collaboration we've seen here gets translated to the Forem apps as soon as we're able to open source them ❤️

@rt4914
Copy link
Contributor

rt4914 commented Sep 20, 2022

Closing this as it is not required now.

@rt4914 rt4914 closed this as completed Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs; wait for 'approved' label to begin work status: approved issues where contributions are welcome
Projects
None yet
Development

No branches or pull requests

7 participants