skip to Main Content

I am able to receive the locally scheduled notifications for both Android and IOS and I am trying to navigate the user to screens according to the type of notification when the user taps on the notification. IOS works fine but on Android when I receive the notification in killed state, then onNotification is not working in some android phones.
It works fine in realme with OS version 13 but not in redme with OS version 13 and vivo with OS version 12.
Kindly help me to fix this issue.

All the permissions are added in AndroidManifest.xml. SplashActivity.java is already added. It works fine on some phones but not working in these Android OS versions.

2

Answers


  1. Bom dia.
    Coloca a seguinte função na raiz do projeto,

    PushNotification.configure({
        onNotification: function (notification) {
            onFunctionNotitication(notification)
        },
        onRegister: async function (token) {
        },
        onRegistrationError: function (err) {
        },
        permissions: {
            alert: true,
            badge: true,
            sound: true,
        },
        popInitialNotification: true,
        requestPermissions: true,
    });
    
    Login or Signup to reply.
  2. some of brands such as oppo, vivo and some models of huawei etc kill all processes about applications even google system threads.
    in these brands ui customized by company and this implementation is imperfect so these brand’s phones kill all processes that running in background after a few second/minute.
    you can communicate with company for adding your app their whitelist but I think to waste your time in this issue.
    you can see this problem in recieving mails,other app’s notifications.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search