I just found that some gum is excreting from the fruits of mango. Here are the pics. Could someone tell me what it is? How to cure it?

I just found that some gum is excreting from the fruits of mango. Here are the pics. Could someone tell me what it is? How to cure it?

I think they are bruised by rubbing against the fence. If you can actually spot any insects on them, then try spraying Neem oil.