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

Samsung android 12 not Work #378

Open
ash737 opened this issue Sep 30, 2022 · 6 comments
Open

Samsung android 12 not Work #378

ash737 opened this issue Sep 30, 2022 · 6 comments

Comments

@ash737
Copy link

ash737 commented Sep 30, 2022

Notification badge not work in galaxy M 12 (android 12)
I have targetSdkVersion = 28 in build.gradle but in config.xml targetSdkVersion equal to 30

Cordova: 11.0.0
Cordova android: 8.1.0

I have tested many android devices, all work fine but, Samsung Galaxy M 12 not work.

Please help

@ash737
Copy link
Author

ash737 commented Sep 30, 2022

@leolin310148

@ash737
Copy link
Author

ash737 commented Oct 1, 2022

I have fixed by add the following in Mainifest.xml

    <uses-permission android:name="com.sonymobile.home.permission.PROVIDER_INSERT_BADGE" />
    <uses-permission android:name="com.anddoes.launcher.permission.UPDATE_COUNT" />
    <uses-permission android:name="com.majeur.launcher.permission.UPDATE_BADGE" />
    <uses-permission android:name="com.huawei.android.launcher.permission.CHANGE_BADGE" />
    <uses-permission android:name="com.huawei.android.launcher.permission.READ_SETTINGS" />
    <uses-permission android:name="com.huawei.android.launcher.permission.WRITE_SETTINGS" />
    <uses-permission android:name="android.permission.READ_APP_BADGE" />
    <uses-permission android:name="com.oppo.launcher.permission.READ_SETTINGS" />
    <uses-permission android:name="com.oppo.launcher.permission.WRITE_SETTINGS" />
    <uses-permission android:name="me.everything.badger.permission.BADGE_COUNT_READ" />
    <uses-permission android:name="me.everything.badger.permission.BADGE_COUNT_WRITE" />

Thank you @leolin310148

@wsilva98
Copy link

Hi, I do have a similar issue in a Samsung S12 android 12, I added what you suggested to the manifest but it still doesn't work... @ash737 @leolin310148 any ideas on how to make this work?

@rafaelsetragni
Copy link

rafaelsetragni commented Oct 20, 2022

What is "doesn't work"? Your phone won't boot? Does the badge never appear? Is the badge counter wrong? Are you in the wrong colors? appears otherwise???
Everything possible can be "is not working".

I'm using it on Samsung 12 (S20 FE) right now and "it's working". What I think you're thinking is "not working" is in fact the default of the platform. For Samsung devices using One UI, if there is no notification in the status bar, your badge will not be displayed, but the number counter will still be there. As soon as your app sends a notification to the status bar, the badge is displayed again with its current value.

Oh! Please stop to use "is/not working" expression. We are IT professionals, this is a kind of layman's language, it don't belong to us.

@wsilva98
Copy link

@rafaelsetragni I'm not sure what OP meant, but on my case clearing the notification counter doesn't seem to work. I'm not very familiar with Samsung devices but it seems as you suggested that until the notification in the notification center (I guess you call it notification status bar) is not cleared, the counter will be displayed. Is this normal behaviour?

@rafaelsetragni
Copy link

Yes, this is the normal behavior.

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

3 participants