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


#1

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 ???


#2

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


#3

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.


#4

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


#5

have any solutions to solve this problem? plz help…