I have finally figured out the solution and there is no direct solution for this and we need to do a simple trick by playing a silent audio which will keep our app active in background. Explanation added here: Medium Article.