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


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:

1 Like

have any solutions to solve this problem? plz help…