tylerbwong / stack

An Android app for browsing Stack Overflow and other Stack Exchange sites.
https://stack.tylerbwong.me
GNU General Public License v3.0
522 stars 36 forks source link

Inbox Notifications #120

Open JourneymanGeek opened 3 years ago

JourneymanGeek commented 3 years ago

One of the features of the "official" Stack Exchange android application is notifications of any new messages in your inbox. Unfortunately with the discontinuation of the SE application, there's no way of getting notifications of new inbox items without checking on the main page. We may get web notifications in the future but that lacks the immediacy of being able to check on your phone without explicitly opening a webpage or an app

The 'official' app is a good place to start for inspiration - Screenshot_20210609-164730

It gives the title of the question, and part of the text of what's in the inbox. While clicking on it will bring you to the official app, which has a sidebar for it, there might be other ways to implement it - maybe in the home dash board?

tylerbwong commented 3 years ago

Would love to bring push notifications to the app, but unfortunately part of this implementation requires server-side implementation of Firebase Cloud Messaging. It seems like things are still up and running on the Stack Exchange side, but I'm not sure if the API to register a device for push is public.

Alternatively, we could continuously poll the notifications API in the foreground/background, but that would be quite resource intensive.

JourneymanGeek commented 3 years ago

Can't really rely on SE to keep stuff up, even if you could register. They're slowly taking down stuff, web push notifications are how they want to go. https://api.stackexchange.com/docs/me-unread-notifications is probably the call of more interest. Not sure what's the best option here, but its the single feature of the extaunt app that I use the most.

rduinopi commented 3 years ago

Hi 👋🏼 I would like to know what OS you are using on your phone which you have done the screenshot with.

Best Regards!

JourneymanGeek commented 3 years ago

Its a android 11/Oneplus 9 Pro running oxygen OS

JourneymanGeek commented 2 years ago

https://meta.stackexchange.com/questions/372921/is-could-the-android-ios-application-endpoint-for-notifications-be-opened-up-t/372922#372922 made a formal request to see if other apps can use SE's FCM implimentation.