-
Notifications
You must be signed in to change notification settings - Fork 710
Build with Android O SDK (Android 8.0 / API 26) #863
Comments
Would we also have to refactor now-deprecated methods? If this isn't too complicated I think it would be great to be able to include homescreen shortcuts (#833) for Android O+ with the ShortcutManager. 👍 |
If it's straight-forward to do. Otherwise I'd be okay to do it later. I'm more worried about some behavior changes in the SDK that break some of the existing features (like the ongoing notification). I'll try to get patches up for that soon! :) |
@antlam @mheubusch While Focus is active we show an on-going notification. Now on Android 8+ we need to create a so called "notification channel" for all notifications. Whenever we display a notification we need to assign it to a channel. A user can configure how (or if) notifications from a specific channel show up. Here's a pretty good article about the feature: For our on-going notification we need to create a channel with a "name" and an (optional) description. The Android guidelines say:
I have absolutely no clue how we should name this thing. However here are some screenshots from Android's UI showing the strings: Showing all notification channels of the app. "Session" is how I named the channel in my build: This is the screen shown when tapping on the channel to configure it. "Text text" is the description of the channel I used in my build: |
…notification channel (Android 8+). (#863)
…notification channel (Android 8+). (#863)
"name" Private browsing session |
This is at least needed to support home screen shortcuts on Android O (#833).
I tried using the new SDK in June (#758). Building worked fine but running our Robolectric tests failed.
The text was updated successfully, but these errors were encountered: