Cloud function not working on android 8 and later

Parse.Cloud.define('registerDevice', async function(request, response) {
 console.log('hi')

  if (!request.params.permissionCode) {
return {
  "error": {
    "code": "1",
    "description": "Permission code is required"
  }
}
  }  
 return {"success":{}};
  
});

i’ve created this function and work well on ios and android <= 7
on android 8 and later the first console.log is not executed

Can you please confirm the Parse Server version that you are using and also if you have any log or error thrown in our Android application?

that is my packaje.json
{
“name”: “parse-server-example”,
“version”: “1.4.0”,
“description”: “An example Parse API server using the parse-server module”,
“main”: “index.js”,
“repository”: {
“type”: “git”,
“url”: “https://github.com/ParsePlatform/parse-server-example
},
“license”: “MIT”,
“dependencies”: {
“express”: “~4.11.x”,
“kerberos”: “~0.0.x”,
“parse”: “~1.8.0”,
“parse-dashboard”: “^1.3.0”,
“parse-server”: “*”
},
“scripts”: {
“start”: “node index.js”
},
“engines”: {
“node”: “>=4.3”
}
}
and not, in android no error message appears, i clarify that I am working with react-native, in short the connection to the database is via javascript, I do not understand why it does not work

If you call the function using a curl command, what do you receive back?

when i call function from curl, that work fine
response is
{“result”:{“success”:{}}}

Can you share the code that you are using in the client side?

  const cloudResponse = await Parse.Cloud.run("registerDevice",{
                "permissionCode": x,
                "coordinates": positionLicense
            })
            
            if (cloudResponse && cloudResponse.success) {
                
                let respuesta = null
                respuesta = cloudResponse.success
               
                
               
            }
            else {
               
                this.showError()
            }

Could you please wrap it in a try/catch and console log the error?

It doesn’t give error messages, while debugging it works perfect, when I make an apk release it breaks