Open remuslazar opened 5 years ago
@remus Do you happen to have additional info about max char number/length at hand?
@Wordcrafts there are no hard constraints, I think iOS will just trim the strings when appropriate.
I will say, the title should be some static string, e.g. "Arrived at Chargepoint", the body can then contain the full charge point name, which will be trimmed by the system if necessary.
Not sure if we should also use the subtitle
field?
See https://developer.apple.com/documentation/usernotifications
This here is quite useful: https://developer.apple.com/videos/play/wwdc2018/806/
I'd +1 to use a static string in the title and the full name (auto-trimmed if too long) in the subtitle field. Users probably know anyway which station it is or it is not really of importance how it called.
Abstract
Improve the rendering of the "arrived at" notifications.
New Features of the Notification Framework in iOS10+
Local Notification can now have - in addition to the body - both
fields.
Additionally there is also possible to add a "media attachment" to the notification, e.g. an image.
Status Quo
Currently the notification looks like:
References