Skip to content

Commit

Permalink
docs: behaviour.md - useful fullscreen tips (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejnedoma authored Dec 11, 2023
1 parent f78a565 commit 5600239
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs-react-native/react-native/docs/android/behaviour.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ notifee.displayNotification({
});
```

and, by adding `showWhenLocked` and `turnScreenOn` to your activity:
and, by adding `showWhenLocked` and `turnScreenOn` to your activity in android/app/src/main/AndroidManifest.xml:
```xml
<activity
...
Expand All @@ -200,6 +200,8 @@ and, by adding `showWhenLocked` and `turnScreenOn` to your activity:
/>
```

> After making these changes, be sure to run `cd android` and `./gradlew clean`, then re-install the app.
Running this code, Notifee will attempt to launch the activity when the notification is displayed.

> Please note that the notification may be shown as a heads-up notification, instead of a full-screen notification, while the user is using the device.
Expand Down

0 comments on commit 5600239

Please sign in to comment.