I just want to build a step counting app for iphones. My application runs correctly when in foreground and save the step data to the firebase but when user terminate the app