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.

Crash if Navigation.PopAsync in tap command on Android

See original GitHub issue

XAML

<Grid xe:TouchEffect.Color="Black"
	  xe:EffectsConfig.ChildrenInputTransparent="True"
	  xe:Commands.Tap="{Binding PageNavigationPopCommand}">

C#

PageNavigationPopCommand = new Command(async (dest) =>
{
	await Navigation.PopAsync(true);
});

If I write await Task.Delay(500) before PopAsync, there is no crash.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mrxtencommented, May 31, 2018

Fixed in 1.5.0

0reactions
mrxtencommented, May 3, 2018

@FotalGoncharuk sorry, still too busy. Yes, you can add await Task.Delay(500); before PopAsync,

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xamarin/Tizen: Executing Navigation.PopAsync() crashes ...
The problem is if I call PopAsync() on that third page OR I change the PopToRootAsync() on the second page to a PopAsync()...
Read more >
Crashing on Android (Soft Keyboard open while closing)
If you tap the input field to open the soft keyboard, then tap close on the modal (PopupNavigation.Instance.PopAsync(false)), the library ...
Read more >
Xamarin.Forms 5.0.0.1931 (5.0.0 Service Release 2) ...
The name also more closely reflects the behavior of the control. ... "[Bug] UWP: PopAsync causes a crash when called from a CollectionView....
Read more >
.NET MAUI's Navigation for Beginners - Push, Pop, & Pass ...
NET MAUI Navigation Crash Course using Visual Studio 2022. ... and Up Navigation 11:30 - Passing simple parameters when navigating 16:15 ...
Read more >
Let's Override Navigation Bar back button click in Xamarin ...
So as I explained at the beginning we need to override the OnOptionsItemSelected() event in our MainActivity class in order to capture the...
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