Jhardy
Jhardy

Reputation: 89

Is there a way to make Notifications appear on the lock screen after being seen as a banner? iOS12

In our app we are doing journey logging. The process where a user can press start, drive to their destination, press stop and their journey is recorded. With a notification reminding them that they are currently logging a journey.

I have the notifications working on android as follows: When the user taps start there is immediately a local notification icon at the top of the screen. When the phone is locked this notification also appears on the lock screen.

I have it kind of working on iOS where the notification will appear as a banner immediately after the user taps start. The notification will also appear in the notification center but not the lock screen.

https://learn.microsoft.com/en-us/xamarin/ios/platform/user-notifications/advanced-user-notifications?tabs=windows

Reading through the Microsoft documentation it seems that the notification is displayed depending on the state of the phone/app? Is there a way to instantly show the notification as a banner when the user taps start and also show the notification when the user locks their phone? All of this is assuming the user has the relevant settings turned on in iOS 12.

Upvotes: 1

Views: 772

Answers (1)

Junior Jiang
Junior Jiang

Reputation: 12723

Unfortunately ,as far as I know , this can not be realized by third party Map.The notification in lock screen is a static notification display.

Alternatively, you can display alert to tell user updated info when in lock screen.

Otherwise , if using Apple's Map to navigation, when lock screen , you also can see full map view .

Here is the Apple document about UserNotifications .

Upvotes: 0

Related Questions