Application gets restart after going to background ( when pressing home button in android )

Hi,

My android app gets restart. its like if we press home button while working with app then it goes to background and after selecting app from background ( holding home button ) then my app gets restart.

Am i doing any thing wrong ???

maybe you have set exit-on-suspend in your config.xml?

thanks bengtler,

can you tell me more about it (config.xml) ?
i didn’t set any thing, i have just created cordova project and then added ionic library to it.

so can you please tell me that what should i do and where is config.xml file ?

Thank You.

Maybe that page helps:
https://cordova.apache.org/docs/en/3.3.0/config_ref_index.md.html

1 Like

have any solutions to solve this problem? plz help…