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