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

Notify the problem for sendBroast #192

Open
xiedong opened this issue Mar 30, 2017 · 6 comments
Open

Notify the problem for sendBroast #192

xiedong opened this issue Mar 30, 2017 · 6 comments

Comments

@xiedong
Copy link

xiedong commented Mar 30, 2017

ShortcutBadger.applyCount(LftApplication.getApplication(), badgeCount);
您好作者,不知道我使用中文您是否能理解,我在使用您开发的LIB的时候,由于我集成了极光推送,桌面角标数是极光推送的通知次数决定的,我发现您的框架里会发送系统广播,导致我在收到一条通知的时候多了一条空白通知, if (BroadcastHelper.canResolveBroadcast(context, localIntent)) {
context.sendBroadcast(localIntent);
}
您的这行代码不知是否可以加一个开关,现在的问题是我收到一条广播后角标+2,上面多出另一个空白的通知

@xiedong
Copy link
Author

xiedong commented Mar 30, 2017

是否可以加一个过滤

@xiedong
Copy link
Author

xiedong commented Mar 30, 2017

1.0.4 版本可以了 做了分离 我之前用的是1.0.3

@jkasten2
Copy link

ShortcutBadger.applyCount (LftApplication.getApplication (), badgeCount);
Hello, I do not know if I am using Chinese. Can you understand that when I use the LIB you are developing, since I have integrated Aurora Push, the desktop angle is determined by the number of notifications of Aurora push, and I found that in your frame Will send a system broadcast, resulting in a notice when I received a blank notice, if (BroadcastHelper.canResolveBroadcast (context, localIntent)) {
Context.sendBroadcast (localIntent);
}
Your line of code I do not know whether it can add a switch, the problem is now I received a broadcast after the superscript +2, above the other one of the blank notice

Whether it can add a filter

1.0.4 version can be done before I was separated by 1.0.3

Translated the 3 posts above into English with Google translate.

@xiedong The issue is a blank notification? Can you add a screenshot? If you are you are seeing this with a Xiaomi device make sure to update 1.1.14 of this SDK.
See the following if you still need custom badge support on Xiaomi devices

https://github.com/leolin310148/ShortcutBadger/wiki/Xiaomi-Device-Support

See this issue for more details.
#170

@xiedong
Copy link
Author

xiedong commented Mar 30, 2017

Thanks1,14 is right。
I'm find to lose effect for lib in debug model.

@xiedong
Copy link
Author

xiedong commented Mar 30, 2017

buildTypes {
release {
debuggable false
minifyEnabled true
proguardFiles 'proguard.txt'
signingConfig signingConfigs.release
}
debug {
debuggable true
minifyEnabled false
signingConfig signingConfigs.release
}
}
release is work well,debug is fail.

@xiedong
Copy link
Author

xiedong commented Mar 30, 2017

Thank you very much, I study again

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