New Case sync not real time in Mobile?

Hi,

We are not able to get cases in mobile phone when they are created after
installing the app in mobile. However, if we re-install the app in mobile -
the created case appears on the mobile. Is the case sync operation not real
time (without need to re-install the app)?

Regards,
Sathish

Note: We are creating the new cases from our application through
commcare-hq's receiver url.

Hi,

We are not able to get cases in mobile phone when they are created after
installing the app in mobile. However, if we re-install the app in mobile -
the created case appears on the mobile. Is the case sync operation not real
time (without need to re-install the app?

If commcare is configured to use sync mode it should get the updated
cases in real time whenever the user presses "sync with server". I
believe the option for this is "Server Tethering Mode" on HQ, which
should be set to "Two Way Sync"

Cory

··· On Tue, Jul 10, 2012 at 5:51 AM, sathish wrote:

Regards,
Sathish

Hi Cory,

After we enable Two way sync we are able to get the new cases in mobile.
However we face another issue where the removed cases(through our app) of
an user still persists in the mobile phone. Is there a way to remove those
cases? There is a purge option in Admin settings page of commcare, will it
be useful in this scenario?

Thanks,
Sathish

Hi Satish,

If the case is no longer owned by the user on the phone (either directly or
through a group) it should be automatically purged - again - assuming
you're in sync mode. If you are not seeing this behavior please submit a
bug.

Purge should also do this, but purge is run during sync when the phone is
configured in that mode.

Also, I am assuming you are using CommCare 2.0. This is not supported on
1.3.

Cory

··· On Thu, Jul 12, 2012 at 12:03 PM, sathish wrote:

Hi Cory,

After we enable Two way sync we are able to get the new cases in mobile.
However we face another issue where the removed cases(through our app) of
an user still persists in the mobile phone. Is there a way to remove those
cases? There is a purge option in Admin settings page of commcare, will it
be useful in this scenario?

Thanks,
Sathish

Hi Cory,

The behavior we expect is little different. We want the cases to be purged
when the cases are no longer owned by the user in commcare-hq(in mobile
they might have older version of case, but when sync is performed it should
be purged). The scenario is once a certain condition met we will remove the
ownership of the case from a specific user using our app posting case
update xml to commcare-hq and we want the case to be no longer shared with
that user.

Regards,
Sathish

··· On Thursday, July 12, 2012 10:25:03 PM UTC+5:30, Cory Zue wrote: > > Hi Satish, > > If the case is no longer owned by the user on the phone (either directly > or through a group) it should be automatically purged - again - assuming > you're in sync mode. If you are not seeing this behavior please submit a > bug. > > Purge should also do this, but purge is run during sync when the phone is > configured in that mode. > > Also, I am assuming you are using CommCare 2.0. This is not supported on > 1.3. > > Cory > > On Thu, Jul 12, 2012 at 12:03 PM, sathish wrote: > >> Hi Cory, >> >> After we enable Two way sync we are able to get the new cases in mobile. >> However we face another issue where the removed cases(through our app) of >> an user still persists in the mobile phone. Is there a way to remove those >> cases? There is a purge option in Admin settings page of commcare, will it >> be useful in this scenario? >> >> Thanks, >> Sathish >> > >

Hey Sathish,

Hi Cory,

The behavior we expect is little different. We want the cases to be purged
when the cases are no longer owned by the user in commcare-hq(in mobile
they might have older version of case, but when sync is performed it should
be purged). The scenario is once a certain condition met we will remove the
ownership of the case from a specific user using our app posting case
update xml to commcare-hq and we want the case to be no longer shared with
that user.

This is exactly how it should work. Please confirm you are using CommCare
2.0 and have turned on sync mode as described previously, and if you are
seeing problems try to submit a detailed bug report.

thanks,
Cory

··· On Tue, Jul 17, 2012 at 10:29 PM, sathish wrote:

Regards,
Sathish

On Thursday, July 12, 2012 10:25:03 PM UTC+5:30, Cory Zue wrote:

Hi Satish,

If the case is no longer owned by the user on the phone (either directly
or through a group) it should be automatically purged - again - assuming
you're in sync mode. If you are not seeing this behavior please submit a
bug.

Purge should also do this, but purge is run during sync when the phone is
configured in that mode.

Also, I am assuming you are using CommCare 2.0. This is not supported on
1.3.

Cory

On Thu, Jul 12, 2012 at 12:03 PM, sathish tsathish@thoughtworks.comwrote:

Hi Cory,

After we enable Two way sync we are able to get the new cases in mobile.
However we face another issue where the removed cases(through our app) of
an user still persists in the mobile phone. Is there a way to remove those
cases? There is a purge option in Admin settings page of commcare, will it
be useful in this scenario?

Thanks,
Sathish

Hi Cory,

Unfortunately we are using 1.3 as of now :frowning: . We are gonna release the app
in a weeks time and we dont want to risk by moving to 2.0 at this moment.
So I guess we will have to live with it for a while then.

Regards,
Sathish

Sathishkumar T | +919840437701 | ThoughtWorks | Chennai

··· On Wed, Jul 18, 2012 at 9:31 PM, Cory Zue wrote:

Hey Sathish,

On Tue, Jul 17, 2012 at 10:29 PM, sathish tsathish@thoughtworks.comwrote:

Hi Cory,

The behavior we expect is little different. We want the cases to be
purged when the cases are no longer owned by the user in commcare-hq(in
mobile they might have older version of case, but when sync is performed it
should be purged). The scenario is once a certain condition met we will
remove the ownership of the case from a specific user using our app posting
case update xml to commcare-hq and we want the case to be no longer shared
with that user.

This is exactly how it should work. Please confirm you are using CommCare
2.0 and have turned on sync mode as described previously, and if you are
seeing problems try to submit a detailed bug report.

thanks,
Cory

Regards,
Sathish

On Thursday, July 12, 2012 10:25:03 PM UTC+5:30, Cory Zue wrote:

Hi Satish,

If the case is no longer owned by the user on the phone (either directly
or through a group) it should be automatically purged - again - assuming
you're in sync mode. If you are not seeing this behavior please submit a
bug.

Purge should also do this, but purge is run during sync when the phone
is configured in that mode.

Also, I am assuming you are using CommCare 2.0. This is not supported on
1.3.

Cory

On Thu, Jul 12, 2012 at 12:03 PM, sathish tsathish@thoughtworks.comwrote:

Hi Cory,

After we enable Two way sync we are able to get the new cases in
mobile. However we face another issue where the removed cases(through our
app) of an user still persists in the mobile phone. Is there a way to
remove those cases? There is a purge option in Admin settings page of
commcare, will it be useful in this scenario?

Thanks,
Sathish