Phone is getting heated

I am developing a cordova app for ios which uses geolocation, but phone is getting heated when app is in running mode.

cordova: 3.5
iOS: 7

Thanks in advance.

what type of phone? 4s, 5/5c, or 5s?

iPhone 4s and 5s …

The 4s I kind of expect but not the 5s.

Hmmm, can you provide an example of your code? Also, are you using html5 geolocation or the cordova geolocation plugin?