added app lifecycle management Android + iOS