Refactor: switch to native download notification#1751
Open
yasz1234 wants to merge 1 commit intoPredidit:mainfrom
Open
Refactor: switch to native download notification#1751yasz1234 wants to merge 1 commit intoPredidit:mainfrom
yasz1234 wants to merge 1 commit intoPredidit:mainfrom
Conversation
Author
d84014a to
78adf81
Compare
Author
|
我好像进行了误操作,导致我上一个 PR 被关闭了 |
Owner
|
一般来说,我们更相信已经经过大量开发者检验的插件,在没有选择的情况下才会尝试完全自己实现,因为自己的实现不可避免在初期有大量的兼容性问题 你可以确定问题来自 flutter_foreground_task 的哪部分吗,即使我们要进行相关更改,我也倾向于在 flutter_foreground_task 的基础上维护我们自己的 fork |
Author
由于 NoAcitve 和 Thanox 等 Andorid 墓碑软件是闭源且收费的,因此我们也许很难从其识别机制的源头发现问题。 我会向 NoAcitve 的作者反馈这个问题,看看能否解决。 |
Contributor
|
不依赖插件其实更方便 ohos 的适配,但是好像会增加 iOS 适配的工作量 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


起因:
改进方案:
将下载通知模块从第三方插件迁移至原生 Android 实现:
DownloadForegroundService并声明dataSync类型。NotificationCompat.Builder及其setProgress方法实现系统级进度条。MethodChannel处理 Flutter 进度下发及原生通知动作(如暂停、跳转)的回传。重构优势:
flutter_foreground_task插件及相关冗余代码,减少了应用体积和内存占用。