humhub / app

22 stars 8 forks source link

iOS TestFlight Beta OR working notifications on iOS?! #253

Open jannis6023 opened 1 week ago

jannis6023 commented 1 week ago

Hello, I have read lots of Issues concerning the Topic of Push Notifications on iOS, and Mobile in General all around HumHub, and guess I understand the difficulties.

First of all, I know that the future solution of all those notification problems will be the native/flutter mobile app. But as this topic hasn’t been resolved until today for some years for iOS, I still try to figure out a way using PWA. This leads to my first question: Is there a TestFlight link for supporting the testing process of the iOS app?

One of the difficulties, especially in the iOS PWA seems to be the active user interaction required for requesting the push notification permission. This phenomenon also appeared on a Samsung device with the latest OS version. I have been able to proof, that the missing permission results in this requirement, as I added a simple JavaScript button to a custom page triggering the push notification permission request. After some tweaking of CSP, I have been able to try this and have been able to grant the permission successfully. The only further problem here is, that the firebase push notification handler would have to be called here as well, which I haven’t been able to do from this point of code.

So a pretty obvious way to solve this problem would be a dialogue, appearing on the first start of the PWA or a simple message in the dashboard or settings, providing a button to trigger the permission requesting process with real user interaction.

is there a way to implement this functionality temporary using a custom module until it is completely implemented in this module?

thanks, Jannis

ArchBlood commented 1 week ago

I believe you mean grant statuses which is being discussed over in https://github.com/humhub/fcm-push/issues/24 as for the implementation part, I currently haven't the time to update the JavaScript side of things that are needed for this to fully function as requested. You can find the P/R here https://github.com/humhub/fcm-push/pull/44.

marc-farre commented 1 week ago

@jannis6023 Thanks for your analysis. PWA if not the solution for iOS, at least outside Europe: https://www.mobiloud.com/blog/progressive-web-apps-ios Moreover, when you receive an email notification, clicking on the "View online" button opens HumHub in the browser instead of the PWA, which is confusing for users.

The HumHub iOS app is fully functional, but not approved by Apple because they ask us to introduce exclusive features that the web version don't have. If you want to test it, you can send me your email by private message on https://community.humhub.com/u/cuzy.app/home Feedbacks are very welcome!

Up to now, we worked to resolve all main issues with the mobile app, and we now have something quite stable, except issue https://github.com/humhub/app/issues/89 which must first be fixed.

Then we will work on https://github.com/humhub/app/issues/79 and https://github.com/humhub/app/issues/10, and submit HumHub iOS app for review again.

It's always very difficult to give dates, but our goal is to have this iOS app in the store by the end of 2024.

I'm closing this issue as:

You can reopen it if I missed something.