<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Priswin Jose</title>
    <description>The latest articles on DEV Community by Priswin Jose (@priswin_jose_8bf3ae9faedc).</description>
    <link>https://dev.to/priswin_jose_8bf3ae9faedc</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3529035%2F4207851a-0d49-47a6-81c5-ad83eed6e09a.png</url>
      <title>DEV Community: Priswin Jose</title>
      <link>https://dev.to/priswin_jose_8bf3ae9faedc</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/priswin_jose_8bf3ae9faedc"/>
    <language>en</language>
    <item>
      <title>Flutter: Location fetching fails if the device screen is 'Off' or is locked by the user.</title>
      <dc:creator>Priswin Jose</dc:creator>
      <pubDate>Thu, 25 Sep 2025 10:44:44 +0000</pubDate>
      <link>https://dev.to/priswin_jose_8bf3ae9faedc/flutter-location-fetching-fails-if-the-device-screen-is-off-or-is-locked-by-the-user-hpd</link>
      <guid>https://dev.to/priswin_jose_8bf3ae9faedc/flutter-location-fetching-fails-if-the-device-screen-is-off-or-is-locked-by-the-user-hpd</guid>
      <description>&lt;p&gt;My app build uses '&lt;strong&gt;onMotionChange()&lt;/strong&gt;' function to fetch the device location when the device is moving, and when it's stationary for a long period of time, it fetches location every 15-minute interval using the '&lt;strong&gt;onHeartBeat()&lt;/strong&gt;' function without issues in both foreground and background modes.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Unfortunately, location fetching fails when the device screen is 'Off' automatically during the power saving process or is locked by the user.  Occurs in both iOS &amp;amp; Android devices.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I'm using the &lt;a href="https://github.com/transistorsoft/flutter_background_geolocation" rel="noopener noreferrer"&gt;&lt;strong&gt;flutter_background_geolocation&lt;/strong&gt;&lt;/a&gt; package for fetching the location and sending it via API to the backend Laravel application. Please suggest some possible solutions to make it work when the device screen is 'Off'.&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>dart</category>
      <category>geolocation</category>
    </item>
  </channel>
</rss>
