Closed gabrielvoigt closed 4 years ago
So the application being invoked via StartActivityForResult uses this plugin? You can set the result as follows:
window.plugins.intentShim.sendResult(
{
extras: {
'Test Intent': 'Successfully sent',
'Test Intent int': 42,
'Test Intent bool': true,
'Test Intent double': parseFloat("142.12")
}
},
function()
{
}
);
Closing due to inactivity
The scenario is that I need to make a service that returns success or error from the Moove QLY application. When I'm trying to use startActivityForResult, look:
For Android 7 and 6, the intent return this:
{"extras":{"resultCode":0,"requestCode":100},"flags":0}".
However, Android 8 return this:
{"resultCode":-1, CALL_IN_STATUS : "UserCancelled", "requestCode":100}"
I need to get a result equal to android 8.