yaming116 / UpdateApp

app update, is mainly responsible for app download and installation, etc. 开箱即用的app更新,主要负责软件下载、软件安装等。
Apache License 2.0
348 stars 61 forks source link

Download notification not working #35

Open dheerajbred opened 4 years ago

dheerajbred commented 4 years ago

This is my code

            UpdateService.Builder.create(URL)
                    .setDownloadSuccessNotificationFlag(Notification.DEFAULT_ALL)
                    .setDownloadErrorNotificationFlag(Notification.DEFAULT_ALL)
                    .build(MainActivity.this);

Everything is working fine but the Download notification is not showing up. All permissions are there because my app's OneSignal push notifications are working. I tried disabling OneSignal and tried but still the same, not Download notification

It is showing me this in my log

2019-12-30 22:11:01.094 1526-3465/? E/NotificationService: No Channel found for pkg=my.animeprime.app, channelId=null, id=1, tag=null, opPkg=abc.abc.abc, callingUid=10805, userId=0, incomingUserId=0, notificationUid=10805, notification=Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x0 color=0x00000000 vis=PRIVATE)

Any help is really appreciated

yaming116 commented 4 years ago

试试1.0.7