Let the OS do the layout
Closest you are going to guess. you can use
"\n"
to provide a carriage return, but you wonβt know for sure when to use it.
There is no iOS support to tell you in advance what screen size or orientation of your notification is.
You are against the banner:
Banners do not display localNotification.alertTitle

Then counterclockwise, so to speak:
You create notifications in advance. The fact that they are local is not a reason to know what will happen in the future: for everything that you know, you can plan in 1 month and the user can update the OS, as a result of which new fonts will be applied or layout restrictions.
In other words, the answer to this question is: You need to work on Apple Computer and get a local callback before a notification is displayed, which is not an option from the date.

Conclusion
Use a short alertTitle , a short alertBody , possibly sprinkled here and there with \n to create new lines.
// Use '\n' to force newline localNotification.alertBody = "Alert fired.\nWas set for ..."
source share