Rg.Plugins.Popup icon indicating copy to clipboard operation
Rg.Plugins.Popup copied to clipboard

OnBackPressed() deprecated Android13

Open prok155 opened this issue 3 years ago • 5 comments

💬 Questions and Help

Today I increased the target SDK of my project to 33 and I saw that OnBackPressed() method is deprecated. Could you explain how can we override this method when target sdk is 33?

prok155 avatar Aug 10 '22 18:08 prok155

https://developer.android.com/reference/androidx/activity/OnBackPressedDispatcher

rohitvipin avatar Oct 14 '22 10:10 rohitvipin

https://vladislavantonyuk.azurewebsites.net/articles/Migrate-the-deprecated-OnBackPressed-function-in-.NET-MAUI-Android-application

maxkoshevoi avatar Oct 17 '22 20:10 maxkoshevoi

If someone has figured out how to do it with OnBackPressedDispatcher instead of OnBackPressed, could you please update the code sample here: https://github.com/rotorgames/Rg.Plugins.Popup/wiki/Getting-started#android-back-button Thanks

tranb3r avatar Oct 18 '22 08:10 tranb3r

@tranb3r @maxkoshevoi @rohitvipin - did anyone get a working sample for the OnBackPressedDispatcher?

WilliamWatterson86 avatar May 31 '23 08:05 WilliamWatterson86

Sorry, I've migrated to Maui, and I do not have this issue anymore with Mopups.

tranb3r avatar May 31 '23 08:05 tranb3r