I've been using Xamarin.Android to develop an app. Have been able to solve most issues but this 1 has got me and I could do with some help please.
I have push notifications working with AppCenter and Firebase Cloud Messaging. When the app is in the background a notification is received, it shows the icon at the top correctly.
However when I pull down on the icon to see the message and then tap on it, instead, bringing up the last activity (before it went into background), it shows the Login activity (ie MainLauncher = true). This is a data entry app with multiple activities and therefore this behavior will cause problems.
Is there a way to show the last activity of the app instead? I would have thought that this should have been the default behavior.
Looking around people have mentioned changing the launchmode to singleTop (I've tried all) in the manifest but that doesn't work.
<activity android:name=".DummyStartActivity" android:launchMode ="singleTop"/> <activity android:name=".DataEntryActivity" android:launchMode ="singleTop"/>