can maggots survive in canned food
If however, you are talking about some maggots in a bowl of wet food (either canned food or dry food which got wet or which you deliberately added fluid to) it is a different matter. Maggots come from flies eggs and they take some set period of time to hatch from the eggs.