I have an issue with redirecting towards native apps using custom schemes.
scenario:
OutSystems ODC mobile application trying to use a custom scheme to redirect towards another installed mobile native application using following custom scheme(the clientid at the end after %7C is a dummy):
medimo://patient/medication?patient.identifier=http://fhir.nl/fhir/NamingSystem/localidentifier%7C123456
We have this OutSystems application in android and in iOS, in iOS it opens up the native application outside of the OutSystems app context meaning it opens the targeted application as an own instance.
While the same custom scheme when opened in Android it opens the targeted application inside the own context of the OutSystems application, meaning you have to navigate back through swiping for example to get back to the OutSystems application while in iOS you will have the two apps opened up.
---
extra;
The custom scheme can be found in the documentation(dutch):
https://portaal.medimo.nl/portal/nl/kb/articles/beschrijving-van-deeplinking#View-parameter_AMO
Outsystems gave as feedback that I might be using the wrong custom scheme for android but not how it should be sadly enough
@Eduardo Jauch Thanks for the reply :)
I'm not really patient so I made it myself by creating a new plugin with a small piece of code.
https://github.com/OwenDeco/AndroidCustomSchemeRedirect
I tested it and it works :)
Basically we open the custom scheme with an extra parameter that we can't pass in the redirect possibilities of OutSystems. This is a flag that makes sure that it's being opened in a new android task.
For anyone else who is looking for opening new android tasks, meaning another app stack, you just need to put this github into your extensibility properties. Preferably in a new library and consume it in the app that wants to use it.
Best way is doing it ourselves ;)
Hello Owen,
It's many years since I looked to that. I even have a plugin on forge for something like that (bit I don't look into it for veeeery long).
I am not sure you can do that in android like you do in IOs... (I may be wrong).
But I think its possible to open another app in the same stack and context using implicit intent when calling an activity in the other app.
Hope someone with more knowledge on this are able to give you some better insight.
Cheers.