In case of post conviction bail under Section 389, Cr.P.C, it is mandatory that appellate Court gives an opportunity to public prosecutor for showing cause in writing against such release. 

Cr.P.C. S.389: Suspension of sentence and release on bail. Appellate Court may even without hearing public prosecutor, decline to grant bail. However, in case appellate Court is inclined to consider release of convict on bail, public prosecutor shall be granted opportunity to show cause in writing as to why appellant be not released on bail. Despite such opportunity being granted to public prosecutor, in case no cause is shown in writing, appellate Court shall record that State has not filed any objection in writing. This procedure is intended to ensure transparency, to ensure that there is no allegation of collusion and to ensure that Court is properly assisted by State with true and correct facts with regard to relevant considerations for grant of bail in respect of serious offences, at post conviction stage -Atul Tripathi Vs. State Of U.P., (2014) 9 SCC 177: 2014 AIR SCW 4326