question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NotificationTapped is never fired on IOS 13.6

See original GitHub issue

Describe the bug When it try to catch the NotificationTapped event on IOS 13.6

NotificationCenter.Current.NotificationTapped += (args) =>
{
    if (App.Current.MainPage is MainPage page)
    {
        page.SetLabelText("notification tapped");
    }
};

The event is never fired.

To Reproduce Steps to reproduce the behavior: Get this code: TesteApp.zip Run with IOS 13.6 Touch the notification Wait for the event to be fired

Expected behavior The event should be fired and text label should be “notification tapped”

Platform (please complete the following information):

  • OS: IOS
  • Version 13.6

Smartphone (please complete the following information):

  • Even on simulator

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
maciejpawlocommented, Aug 31, 2020

Ok, I’ve just found out why NotificationTapped wasn’t fired on my Android project. The reason of an issue was a custom launch screen, which was created as another acticity; with its MainLauncher attribute set as ‘true’ (just like there: https://docs.microsoft.com/en-us/xamarin/android/user-interface/splash-screen).

1reaction
maciejpawlocommented, Aug 7, 2020

I’ve noticed the same issue on Android 10 (Samsung Galaxy A7 (2018)). App opens, but the event isn’t fired. It’s a bit weird, because it has worked for me before, both on iOS and Android.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xamarin.forms NotificationTapped event not fired when tap ...
1) NotificationTapped this event is not fired when you tap on notification? Some times break point will not hit.
Read more >
Troubleshooting iOS
"APNS Delegate Never Fired" is a timeout message for when iOS doesn't fire a success or failure message if a connection is not...
Read more >
oneSignal iOS push not wroking
APNs Delegate Never Fired : Remove any other notification SDK and push code from your app. The SDK received a response from APNs....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found