Skip to content

Issue #525, changed the conditions for InvalidNotificationException #757

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

Closed
wants to merge 1 commit into from

Conversation

Bilal-Abdeen
Copy link
Contributor

To fix issue #525, I made the 2 changes below.

    @Override
    public void onReceived() throws InvalidNotificationException {
        // 1. removed the following if/else statement
        // if (!mAppLifecycleFacade.isAppVisible()) {
        //     postNotification(null);
        //     notifyReceivedBackgroundToJS();
        // } else {
        //     notifyReceivedToJS();
        // }
        
        // 2. added the following 2 statements, instead of the if/else statement above 
        postNotification(null);
        notifyReceivedToJS();        
    }

To fix issue wix#525 (wix#525), I did 2 changes below. 

``` 
    @OverRide
    public void onReceived() throws InvalidNotificationException {
        // 1. removed the following if/else statement
        // if (!mAppLifecycleFacade.isAppVisible()) {
        //     postNotification(null);
        //     notifyReceivedBackgroundToJS();
        // } else {
        //     notifyReceivedToJS();
        // }
        
        // 2. added the following 2 statements, instead of the if/else statement above 
        postNotification(null);
        notifyReceivedToJS();        
    }
```
@Bilal-Abdeen Bilal-Abdeen requested a review from yogevbd as a code owner July 15, 2021 00:04
@Bilal-Abdeen
Copy link
Contributor Author

Closing this one, and opening another one with a label.

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

Successfully merging this pull request may close these issues.

1 participant