231
Views
7
Comments
[AppLauncherPlugin] Call Native Android & iOS native app, and get the response value
Question
applauncherplugin
Mobile icon
Forge asset by Eduardo Jauch

Hi,


I'm trying to use the AppLauncher plugin to call a native app (with some parameters), and expect a return/response from the call.

How can I do that using the plugin?

Thanks


Regards,

Vincent

2020-02-28 09-46-54
Eduardo Jauch

Hello Vincent,

In theory, as I didn't tested it, you can do it passing something like this:

"{""actionName"":""your action here"", ""dataType"":""text/plain"", ""extras"":[{""name"":""android.intent.extra.TEXT"",""value"":""this is a test"", ""dataType"":""String""}]}"

The returned data (text) should be in the ReturnData of the Launch actions.
The launch by action is the only one, in the code, that will (potentially, as not tested) return data.

Cheers.

UserImage.jpg
Vincent Rories

Hi Eduardo,


But the provided Lauch and LaunchWithData action from the plugin only return the Success (boolean) and Error (code + message text).

How can I get the returned value from these action?

or maybe I'm using the wrong action?



Regards,

Vincent

2020-02-28 09-46-54
Eduardo Jauch

Hello Vincent,

Which version of the component are you using?
In version 0.2.1, the ReturnData output was added:

Beware that I didn't tested it... ;)

Cheers,
Eduardo Jauch

2020-02-28 09-46-54
Eduardo Jauch

Hello Vincent.

Was you able to use the plugin?

Cheers.

UserImage.jpg
Vincent Rories

Hi Eduardo,


Thank you for following up.

Indeed, after updating the plugin the new ReturnData output shows up, but we still unable to get the return value.

Somehow after we call the Launch action, we cannot get anything, even the success status (we can get that value previously)

Any suggestion on how to do that?

Thanks


Regards,

Vincent

2020-02-28 09-46-54
Eduardo Jauch

Hum...

Ok. I'll have to investigate deeper.
When I have something new I come back here.

Cheers.
Eduardo Jauch

UserImage.jpg
Vincent Rories

Hi Eduardo,


So the parts inside blue box was called, but the one in the red box is not called.

Thanks


Regards,

Vincent

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.