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

Notification Body Truncate issue in iOS #2321

Open
KallepalliTirumalesh opened this issue May 7, 2024 · 0 comments
Open

Notification Body Truncate issue in iOS #2321

KallepalliTirumalesh opened this issue May 7, 2024 · 0 comments

Comments

@KallepalliTirumalesh
Copy link

KallepalliTirumalesh commented May 7, 2024

Hi ,
I am working on firebase push notification everything is working fine except in iOS when there is more characters in body the entire notification not showing its truncating the text but works fine on Android.

Is there any limitation for iOS or am i missing anything please let me know

Here is the code:

const AndroidNotificationDetails androidPlatformChannelSpecifics =
        AndroidNotificationDetails('your channel id', 'your channel name',
            channelDescription: 'your channel description',
            importance: Importance.max,
            priority: Priority.high,
            styleInformation: BigTextStyleInformation(''),
            ticker: 'ticker');
    const NotificationDetails platformChannelSpecifics =
        NotificationDetails(android: androidPlatformChannelSpecifics);
    await _localNotificationsPlugin.show(0, remoteMessage.notification!.title,
        remoteMessage.notification!.body, platformChannelSpecifics,
        payload: jsonEncode(remoteMessage.data));
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

1 participant