OnBecameVisible() and IsVisible should work, however it may not be the exact behavior you’re looking for depending on your setup, as it will include times when the object is rendered due to just its shadow being in-frame. It also will be affected by all cameras in the scene, including the scene-view camera when running in editor. I’d guess that if you aren’t receiving these messages at all, your script may not be on the same object as the Renderer (The message does not propagate up the hierarchy).
Another approach you could use would be to just calculate whether the object’s position is within the frustum of the camera. It’s quite simple to test a single point for this, though if your object is large or oblong you may run into issues where a part of the object is visible on camera but the point you are testing is not. But for simple interaction tests this may be good enough! You could just pass Camera.main to this function with your objects position.