remuslazar / EVPlugFinderPublic

Public Repository to hold the Issue Tracker for the private EVPlugFinder repo
13 stars 0 forks source link

iOS10 Geofencing Notification Rendering Tweaks #138

Open remuslazar opened 5 years ago

remuslazar commented 5 years ago

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:

image

References

Wordcrafts commented 5 years ago

@remus Do you happen to have additional info about max char number/length at hand?

remuslazar commented 5 years ago

@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

remuslazar commented 5 years ago

This here is quite useful: https://developer.apple.com/videos/play/wwdc2018/806/

Wordcrafts commented 5 years ago

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.