DEV-Android
DEV-Android copied to clipboard
App always crashes when accessing from the notification area
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
- A notification message is received.
- Click on the notification message
- App opens and dies without any visible UI or message
- 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
Hello @patarapolw can you try clearing the app's cache and storage and see if you can still reproduce this issue?
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.
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.
@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.
Absolutely @bluetoothfx! Here's the steps with a few links for step-by-step guides:
- Spin up the local web app. This is the guide for the container installation: https://docs.forem.com/installation/containers/
- Since you'll be working on your device I can recommend using ngrok to easily expose your local app
- 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
- You'll want to put the
google-services.jsonfile in theappdirectory of the Android project and update bothgradle.propertiesandCustomWebViewClient(add to overrideUrlList) with your custom URL
Let me know if you have any issues along the way :)
I have an app crashing problem, many of app are crashing my phone what can i fo this?
all important app are crashed my phone i think vivo is a very unfit phone.
Am using iqoo phone .Now when ever I open whatspp it will automatically close and back to home page
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
Absolutely @bluetoothfx! Here's the steps with a few links for step-by-step guides:
- Spin up the local web app. This is the guide for the container installation: https://docs.forem.com/installation/containers/
- Since you'll be working on your device I can recommend using ngrok to easily expose your local app
- 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
- You'll want to put the
google-services.jsonfile in theappdirectory of the Android project and update bothgradle.propertiesandCustomWebViewClient(add to overrideUrlList) with your custom URLLet 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.
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 ❤️
Closing this as it is not required now.