deltachat / deltachat-android

Email-based instant messaging for Android.
GNU General Public License v3.0
1.15k stars 148 forks source link

add "realtime is disabled" dialog #3405

Open adbenitez opened 3 weeks ago

adbenitez commented 3 weeks ago

also add window.webxdc.isRealtimeSupported() so apps that don't require the feature to work can avoid the dialog pop up and just keep working without real-time, to mitigate annoyances when apps work without realtime and use it only to add extra features opportunistically

window.webxdc.isRealtimeSupported() makes sense in general as some webxdc implementations besides allowing to disable it, might just not support realtime channels feature, as it is more work to implement than the simple basic API, giving the client a way to communicate that the feature is missing without silently doing nothing, so apps can realize the lack of support and adapt or show a warning if they can't work without realtime

I guess this requires the Webxdc spec to be updated as well in some our repos

github-actions[bot] commented 3 weeks ago

To test the changes in this pull request, install this apk: 📦 app-preview.apk

github-actions[bot] commented 3 weeks ago

To test the changes in this pull request, install this apk: 📦 app-preview.apk