why the object was not destroy in android game?

when i test it in the computer…it worked…but when i install the apps on the android it never worked…this is my code…is it for android has to use another code or what??

function OnTriggerEnter(collisionInfo : Collider){
if(collisionInfo.gameObject.tag == “heart”){
Destroy(collisionInfo.gameObject);
}
}

Try instantiating a cube at a specific place before and after the tag check, to see if it’s going in there. Or do a gui thing or whatever.