Forum Xamarin.iOS
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Push Notification's Custom Action not shown on iOS13 when iPhone is Idle

Sandman202Sandman202 Member ✭✭

I am running into an issue relating to custom actions for a push notification on an iPhone that is idle/locked. It happens when the device is idle.

Let me first describe how it should work. This is working on iPhone using iOS12.
1. The device is idle and a push notification is received.
2. The user taps the push notification.
3. User unlocks the iPhone.
4. The app launches.
5. A message is displayed where the user either selects "accept" or "decline".

Here is what is happening on iPhones running iOS 13.
1. The device is idle and a push notification is received.
2. The user taps the push notification.
3. User unlocks the iPhone.
4. The app launches.
5. Message is never displayed with actions.

I am currently using Xcode v11.3.1. I see v11.6 is available.

Answers

  • LandLuLandLu Member, Xamarin Team Xamurai

    I'm afraid this is by design.
    Once the notification runs into the system notification tray, it can't be expanded to display the actions under iOS 13.
    It can only be shown up when the time it comes at the top of the iPhone.

  • Sandman202Sandman202 Member ✭✭

    LandLu, I believe you misunderstood the steps I described.

    I updated to the latest Xcode and it is working like it should.

Sign In or Register to comment.