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

[Android] #1

Open
abdelwehed opened this issue Dec 7, 2016 · 6 comments
Open

[Android] #1

abdelwehed opened this issue Dec 7, 2016 · 6 comments

Comments

@abdelwehed
Copy link

Hello,
I'm new in react native and i want to add shortcut badge representing number of notifications to my android app.
I've followed this readme but i can't get it working, i think i'm doing something wrong.
Can anyone help me use it by an example or anything. And thank you in advance.

@BerniWittmann
Copy link

@abdelwehed
Better late than never:

The documentation is wrong in Step 3.
You need to update MainApplication.java not MainActivity.java

import com.yangqiong.shortcutbadger.ShortcutBadgerPackage;

public class MainApplication extends Application implements ReactApplication {
    ...
    protected List<ReactPackage> getPackages() {
        return Arrays.<ReactPackage>asList(
            new MainReactPackage(),
            new ShortcutBadgerPackage()     // new
        );
    }
    ...
}

@vedovato
Copy link

vedovato commented Nov 3, 2017

@BerniWittmann, did you got stuck in #4?

@BerniWittmann
Copy link

@vedovato
Actually I don't know anymore, but could be true indeed

@vedovato
Copy link

vedovato commented Nov 6, 2017

Managed to work, @BerniWittmann. Just manually edited the source file removing the @OverRide flag. The project maintainer should update it hehe :p

@aMarCruz
Copy link

A few days ago I published react-native-shortcut-badge in npm, I had not seen this library 😮

@14bscsskazmi
Copy link

image

some thing is wrong with its documentation

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

5 participants