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

Background push notifications #37

Open
LuanCassiano opened this issue Dec 28, 2021 · 2 comments
Open

Background push notifications #37

LuanCassiano opened this issue Dec 28, 2021 · 2 comments

Comments

@LuanCassiano
Copy link

Hi,

I implemented the code below, but I don't receive the notification in the background

import messaging from '@react-native-firebase/messaging';
import PushIOManager from '@oracle/react-native-pushiomanager';
import { AppRegistry } from 'react-native';

messaging().setBackgroundMessageHandler(async remoteMessage => {

PushIOManager.isResponsysPush(remoteMessage, (error, response) => {
             
    if (response) {

        // Push notification received from Responsys.
        PushIOManager.handleMessage(remoteMessage);

    } else {

        // Not a Responsys push notification, handle it appropriately.
    }
});

});

AppRegistry.registerComponent(appName, () => App);

the version of firebase messaging is 13.1.0. Is a specific version needed?

@joaovtpereira
Copy link

Hi Luan,

i had the same problem in a project I worked on, apparently for Android it is necessary to activate a function called "High Priority".

Contact Oracle support that possibly this problem will be solved.

@mlgamarra
Copy link

Hi Luan,

i had the same problem in a project I worked on, apparently for Android it is necessary to activate a function called "High Priority".

Contact Oracle support that possibly this problem will be solved.

Hi
I have the same problem, can you give me some information, please, on how to solve it?

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