MaikuB / flutter_local_notifications

A Flutter plugin for displaying local notifications on Android, iOS, macOS and Linux
2.47k stars 1.4k forks source link

Notification Body Truncate issue in iOS #2321

Closed KallepalliTirumalesh closed 5 months ago

KallepalliTirumalesh commented 6 months ago

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));
MaikuB commented 5 months ago

This isn't a plugin issue and you also mention Firebase so will be closing this. If you want to know if there's a limitation or not for iOS then you need to do your research onto how iOS behaves