We've a application which is using location manager and gcm push notification. Rest of components are like UI etc. Issue is that my application is using normal battery drain as expected when both push notification and location service is enabled. But now days with some devices, customers are reporting that my device is using unexpected battery draining and some time application's battery manager showing warning even.
As concern to Location, I'm using location manager with time and distance component under a android service. Gcm push implemention is simple as all other applications, like registering push and once push generated, getting push notification. So, I'm seeing only unusual thing in my app is that background service with location manager registered for significant location change (on behalf of time and distance). But when my application is not using location service, then also some time reported for battery drain. So, I wanted to know about the any tools that what is causing of battery drain in my app, is there any tools available? How can we identify that which part of application is cause of battery drain?
****Edit - I come to know by tester that it's happening on a specific device, which recently launched i.e Samsung S7 Edge device. Is someone have any idea for similar issue reported?