Skip to content

Issue #525, changed the conditions for InvalidNotificationException #758

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

@Bilal-Abdeen Bilal-Abdeen commented Jul 15, 2021

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 marked this pull request as ready for review July 15, 2021 00:46
@Bilal-Abdeen Bilal-Abdeen requested a review from yogevbd as a code owner July 15, 2021 00:46
@stale
Copy link

stale bot commented Aug 29, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the 🏚 stale label Aug 29, 2021
@stale
Copy link

stale bot commented Sep 5, 2021

The issue has been closed for inactivity.

@stale stale bot closed this Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant