We have a drift alarm that works well, but running the Chartplotter all night does use some power. I looked to see if a reliable smart phone app had been developed that runs solely on the smartphone's GPS. I found several but the Slim Jim Anchor Alarm has the best reviews. Going to give it a try on a little cruise we are doing this week. I have a USB port on my boat that charges my cell phone all night with no noticeable battery drain.
https://play.google.com/store/apps/details?id=uk.co.slimjimsoftware.anchoralert
https://play.google.com/store/apps/details?id=uk.co.slimjimsoftware.anchoralert