Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Channel not created when the meaning is fetched prior to first app launch #37

Open
VishnuSanal opened this issue Sep 11, 2023 · 3 comments

Comments

@VishnuSanal
Copy link

No Channel found for pkg=com.xtreak.notificationdictionary, channelId=Dictionary, id=1, tag=null, opPkg=com.xtreak.notificationdictionary, callingUid=10599, userId=0, incomingUserId=0, notificationUid=10599, notification=Notification(channel=Dictionary shortcut=null contentView=null vibrate=null sound=null defaults=0x0 flags=0x10 color=0x00000000 vis=PRIVATE)

I think this is because of the creation of notification channel from MainActicity & not from ProcessTextActivity where the notification gets created.

@tirkarthi
Copy link
Owner

MainActivity downloads the dictionary and setup of the app is done. So checking for meaning without opening the app atleast once might be causing this.

@VishnuSanal
Copy link
Author

MainActivity downloads the dictionary and setup of the app is done. So checking for meaning without opening the app atleast once might be causing this.

can we download it in the BG upon notification trigger? or can we just add a message to the user that the downloading is not yet completed?

@tirkarthi
Copy link
Owner

I would lean towards later as ProcessTextActivity is meant to be instant and I don't want to add more to it. Maybe a message or toast to open app or to show database missing is appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants