React-native-firebase: Android notification is not expanding

Created on 20 Jun 2019  路  2Comments  路  Source: invertase/react-native-firebase


Issue



When the app is in the background I can normally expand any notification arriving with long text,
but when the app is in the foreground, the notification doesn't expand which prevents the user from seeing all the text present in this notification.


Project Files






iOS

Click To Expand

#### `ios/Podfile`: - [ ] I'm not using Pods - [x] I'm using Pods and my Podfile looks like:

# N/A
#### `AppDelegate.m`:
// N/A


Android

Click To Expand

#### `android/build.gradle`:

// N/A
#### `android/app/build.gradle`:
// N/A
#### `android/settings.gradle`:
// N/A
#### `MainApplication.java`:
// N/A
#### `AndroidManifest.xml`:
<!-- N/A -->


Environment

Click To Expand

**`react-native info` output:**

 OUTPUT GOES HERE
- **Platform that you're experiencing the issue on**: - [ ] iOS - [ ] Android - [ ] **iOS** but have not tested behavior on Android - [ ] **Android** but have not tested behavior on iOS - [ ] Both - **`Firebase` module(s) you're using that has the issue:** - `e.g. Instance ID` - **Are you using `TypeScript`?** - `Y/N`




Think react-native-firebase is great? Please consider supporting all of the project maintainers and contributors by donating via our Open Collective where all contributors can submit expenses. [Learn More]

Most helpful comment

Fixed by using
displayedNotification.android.setBigText(
body,
title,
body
);

All 2 comments

Fixed by using
displayedNotification.android.setBigText(
body,
title,
body
);

how to use bigText and bigPciture in same push notification,if i am comibine that bigtext only work,i want bigpciture with bigtext

Was this page helpful?
0 / 5 - 0 ratings