This repository was archived by the owner on Apr 7, 2026. It is now read-only.
Description Apparent bug
It seems like the app does not open when clicking the notification body.
Environment
react-native: 0.66.4
@notifee/react-native: 4.0.1,
device/api: Pixel_5_API_31
Reproduction steps
npx react-native init repro
npm i @notifee/react-native
add android:exported="true" to AnroidManifest.xml
update build.gradle with compileSdkVersion = 31 targetSdkVersion = 31
add provided code of minimal example
build app
click button to display notification
minimize app and click notification
in my case, the notification disappears after a short moment but the app does not open
minimal example:
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react' ;
import { View , Button } from 'react-native' ;
import notifee from '@notifee/react-native' ;
const App = ( ) => {
async function onDisplayNotification ( ) {
const channelId = await notifee . createChannel ( {
id : 'default' ,
name : 'Default Channel' ,
} ) ;
await notifee . displayNotification ( {
title : 'title' ,
body : 'body' ,
android : {
channelId,
pressAction : {
id : 'default' ,
} ,
} ,
} ) ;
}
return (
< View >
< Button
title = "Display Notification"
onPress = { ( ) => onDisplayNotification ( ) }
/>
</ View >
) ;
} ;
export default App ; Reactions are currently unavailable
Apparent bug
It seems like the app does not open when clicking the notification body.
Environment
react-native:
0.66.4@notifee/react-native:
4.0.1,device/api:
Pixel_5_API_31Reproduction steps
npx react-native init repronpm i @notifee/react-nativeandroid:exported="true"toAnroidManifest.xmlbuild.gradlewithcompileSdkVersion = 31 targetSdkVersion = 31minimal example: