LeanderBB / you-have-mail

Application to notify you if an email has arrived in your email Account
GNU Affero General Public License v3.0
89 stars 5 forks source link

Stop app opening after opening PM #10

Closed calhix closed 1 year ago

calhix commented 1 year ago

Currently, after clicking the notification, it opens PM, after closing PM, instead of going to the home screen or previous app, the You Have Mail app is opened. I think it would be better for the app not to open at all. BTW great work on this!

LeanderBB commented 1 year ago

By closing do you mean, go to the app drawer and swipe up?

The current setup relies on the fact that the foreground services sends a notification with the intent to the main app, which in turn handles this and launches the app with the ID stored in the intent.

I'm not sure if this is the right way to go about it, this is the first android App I built 😅. If a more experienced dev has any ideas, do let me know.

Regardless, I'll see what I can do for this case particular case, but I can't promise that I can actually fix this. ------- Original Message ------- On Wednesday, April 26th, 2023 at 07:45, calhix @.***> wrote:

Currently, after clicking the notification, it opens PM, after closing PM, instead of going to the home screen or previous app, the You Have Mail app is opened. I think it would be better for the app not to open at all. BTW great work on this!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

calhix commented 1 year ago

Haha no problem and to clarify, once PM is opened and I'm done reading the email, I click the back button to close PM (well obviously it doesn't close it but minimizes and keeps it in RAM) and it opens the You Have Mail app where it shows your accounts that you have entered and there's no reason for that to happen if you can stop it but its not a huge deal since you just have to click the back button again but it would be nice for the app not to open^^

LeanderBB commented 1 year ago

@calhix I have released v0.6.0 which now returns to the home screen instead. Let me know if this improve things for you.

calhix commented 1 year ago

Works great thanks!