title: Android Workmanger PeriodicWorkRequest API work only once?
body: <p>Am Using <strong>androidx</strong> Work manager API, in Work manager am using <strong>PeriodicWorkRequest</strong> to trigger the Work for every 4 hours. But it works only once after run the application. </p>
  
  <p><strong>PeriodicWorkRequest Coding:-</strong></p>
  
  <pre><code>Constraints constraints = new Constraints.Builder()
              .setRequiredNetworkType(NetworkType.CONNECTED)
              .build();
  
  PeriodicWorkRequestpendingCampaignWork = new PeriodicWorkRequest.Builder(PendingCampaignWorker.class, 4, TimeUnit.HOURS)
              .setConstraints(constraints)
              .build();
  </code></pre>
  
  <p><strong>Work Manger Code to Enqueue the Request:-</strong></p>
  
  <pre><code>WorkManager.getInstance().enqueueUniquePeriodicWork(LATEST_CAMPAIGN_WORK, ExistingPeriodicWorkPolicy.KEEP, pendingCampaignWork);
  </code></pre>
  
  <p>For testing am change System time Manually to 4 hours after run the application in emulator to trigger the Work.</p>
  
  <p>Is there any issue in my code help me to solve the issue.</p>
  
  <p><strong>Update:-</strong></p>
  
  <p>Work Manager is working fine, its not working based on System time as <strong>m.hassan</strong> said in answer section. Am test to trigger the <strong>work</strong> for every 20 minutes, its working fine. </p>