Not possible to set task checking frequency to 1 min


#1

V 3.0.5

Not possible to set task checking frequency to 1 min (Most likely not possible to change default 5 min)

  1. SMSsync App -> Settings -> Task -> Set A specific time Frequency
  2. Set frequency 00:01 (Via clock)
  3. Press “Ok” button

Wait for 1 mint. No task published (SMS sent) from gateway app. Wait further, after 5 mints SMS is sent. Task sends SMS after every 5 mint, Instead of one mint.

Bug or am i missing something?


#2

The problem looks in this part of the code in SMSSync/smssync/src/main/java/org/addhen/smssync/data/PrefsFactory.java

public StringPreference taskCheckTime() {
        return new StringPreference(mSharedPreferences, "taskCheck",
                TimeFrequencyUtil.DEFAULT_TIME_FREQUENCY);
    }

whereas DEFAULT_TIME_FREQUENCY is 5 mints in SMSSync/smssync/src/main/java/org/addhen/smssync/presentation/util/TimeFrequencyUtil.java

public static final String DEFAULT_TIME_FREQUENCY = "00:05";

To my understanding “taskCheckTime” function should use custom time instead of DEFAULT_TIME_FREQUENCY .

OR maybe i am totally wrong!