Notice of the time when the petition will be heard shall be given by publication as provided in section 331.305 before the hearing.