humhub / app

22 stars 8 forks source link

Notification links opens in the browser instead of the app (since 1.0.108) #213

Closed marc-farre closed 4 months ago

marc-farre commented 4 months ago

When receiving an email notification, if I click on "View Online", HumHub opens in the default browser instead of the app. This issue occurs since version 1.0.108 Tested with https://community.humhub.com/ (I'm logged-in in the app). The URL starts with https://go.humhub.com?url=https%3A%2F%2Fcommunity.humhub.com%2Fnotification%2Fentry%3Fid........

PrimozRatej commented 4 months ago

Hey @marc-farre, I tested the intent redirects on the community and on my demo instance, and it seems to work for me (device P30 pro). Could you please provide me with a redirect link that you were trying to use to open the app with? Thanks.

https://github.com/user-attachments/assets/29cd9b2f-6898-4816-a7fd-1525f9f0d538

https://github.com/user-attachments/assets/823e77bd-8f90-40ce-afaa-2ce3804a2a00

marc-farre commented 4 months ago

@PrimozRatej I've done some more tests (I also test on the P30 pro):

It still opens in the browser instead of the app.

I've checked the settings: image

It should ask me on which app the link should be opened.

Could you try uninstalling / reinstalling the app maybe?

Push notifications work well (the app is opened).

PrimozRatej commented 4 months ago

@marc-farre Strange. I repeated your use case (reinstalled an app) and it worked as expected. Then I thought that maybe you have installed the PWA version of the community instance, and that there might be some strange behavior with both apps installed. I installed the PWA version, but no, it still opens primarily with the native app.

What were the mail clients you opened the link with?

marc-farre commented 4 months ago

@PrimozRatej Thanks for your investigation. It wasn't related to the app version. For some reason, HumHub links were configured to open by default with one of my browser.

Even uninstalling and reinstalling HumHub app didn't solve the issue. And as shown above, HumHub app was properly configured to open HumHub URLs.

But I managed to solve it by clicking here for the browser app: image