Forum Xamarin.Forms

How to tell if app is in the background or foreground

I am using App center to post push notifications and I have an action set to my push so that tapping on the notification will open a browser. But I want this to happen only on tapping the banner. Right now, this is happening when the app is in the foreground. Can anyone tell me how to identify if the app is in the background or foreground from App.Xaml.cs in the forms application?

Answers

Sign In or Register to comment.