Let me detail what I'm trying to do:
I have a class derived from BroadcastReceiver which intercepts SMSes.
I want to open (resume to the last state) the UI (or to create a new one if it wasn't created already by the user).
How do I do that?
You need to create an intent that will launch MainActivity.
I've done something similar to open the app from a notification. The tricky bit is navigating to the correct page.
In normal android you would just use an intent to launch the correct activity. But since XF places all your pages in a single activity you need to navigate to the correct page manually on launch.
Really? Am I the only one trying to open the user interface from a service?
I am also wondering about this. I'm making an Single-Sign-On API/Library that needs to call on external resources and then get the reply via a redirect into the app via custom URL scheme. Right now the Intent is registered in MainActivity. But it seems very weird to expect developers using my library to set this up in their MainActivity.
Is there still no better way?
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies