Skip to content

Conversation

@jaigak
Copy link
Contributor

@jaigak jaigak commented Aug 6, 2020

Implements and closes #1663

@ghost ghost added the ready for review Pull requests that are ready for review label Aug 6, 2020
@yaira2 yaira2 requested review from tsvietOK and yaira2 and removed request for yaira2 August 6, 2020 12:35
@jaigak
Copy link
Contributor Author

jaigak commented Aug 6, 2020

@yaichenbaum Please don't merge this yet. I'm planning for adding buttons to the notification so that the user can easily access the log file and open an issue.

@jaigak jaigak marked this pull request as draft August 6, 2020 12:40
@jaigak
Copy link
Contributor Author

jaigak commented Aug 6, 2020

Here's an idea. Before showing the notification, we could try to save all the tabs to a file. When the user launches the app again, tabs would be recovered and everything will be ready to go. It's like 'Continue where you left off' but when an exception is thrown.

@yaira2
Copy link
Member

yaira2 commented Aug 6, 2020

I'm planning for adding buttons to the notification so that the user can easily access the log file and open an issue.

The ideal use of the notification would be to ask the user to open an issue on GitHub.

Here's an idea. Before showing the notification, we could try to save all the tabs to a file. When the user launches the app again, tabs would be recovered and everything will be ready to go. It's like 'Continue where you left off' but when an exception is thrown.

This is a great idea.

@jaigak
Copy link
Contributor Author

jaigak commented Aug 6, 2020

@yaichenbaum Should we add a button to restart the app? It doesn't make sense because the notification is sent after the app crashes. Instead, we could open the when the user clicks on the notification itself. That's the default behavior.

@jaigak
Copy link
Contributor Author

jaigak commented Aug 6, 2020

Here's how it would look like:
திரைப்பிடிப்பு (12)

@generalguy41
Copy link

Bit of feedback; While I think this is a great idea and looks well implemented, should it maybe not be combined to one button or something else? As in, if the user clicks "Report this issue", it brings them to the github issue page, but then they have to go look for the log location, which is a couple extra steps. And on the other side, if they click "Open log location", then it opens the log location, they have the log, but have to figure out where to report the issue. Unless there's some way to not dismiss the notification without manually clicking the "x", but I'm not sure if that's a thing...

@jaigak
Copy link
Contributor Author

jaigak commented Aug 7, 2020

@generalguy41 The notification is always in the action center until the users clears it. A single button can't open GitHub and the log file.

@generalguy41
Copy link

@Jaiganeshkumaran Does clicking one of those buttons not dismiss the notification entirely? Or does it only commit the action and then dismiss it to the action center?

@jaigak
Copy link
Contributor Author

jaigak commented Aug 7, 2020 via email

@generalguy41
Copy link

Yea, I agree. That would probably be the best solution.

@jaigak
Copy link
Contributor Author

jaigak commented Aug 7, 2020

Since UWP background tasks don't support launching URLs or folders, these buttons will activate the app but also will do the action.

@jaigak
Copy link
Contributor Author

jaigak commented Aug 7, 2020

For some reason, the notification is fired at the starting because of two exceptions occur in DrivesManager. One exception is caught thus preventing from crash but the notification still appears. This also occurs in the debugger. I'm working on rewriting the block to prevent sending a notification. Until then no notification.

@jaigak
Copy link
Contributor Author

jaigak commented Aug 7, 2020

I fixed it. Getting 'System.UsedSpace' doesn't working for OneDrive so it threw an exception. Now I have restored the notification. Also I have added localization for both the notification and the 'Unknown text'.

@jaigak jaigak requested a review from yaira2 August 19, 2020 12:43
@jaigak jaigak requested a review from yaira2 August 21, 2020 04:30
@jaigak jaigak requested a review from yaira2 August 21, 2020 13:33
yaira2
yaira2 previously approved these changes Aug 21, 2020
yaira2
yaira2 previously approved these changes Aug 23, 2020
@jaigak jaigak dismissed stale reviews from yaira2 via 096e9e3 August 23, 2020 12:32
@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed ready for review Pull requests that are ready for review labels Aug 23, 2020
@yaira2 yaira2 changed the title Show a notification when the app crashes Added a push notification asking for feedback when the app crashes Aug 23, 2020
@yaira2
Copy link
Member

yaira2 commented Aug 23, 2020

:shipit:

@yaira2 yaira2 merged commit 4ef6aeb into files-community:master Aug 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Pull requests that are approved and ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show a notification when the app crashes

4 participants