Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-sync of contacts #463

Closed
sumairasaeed opened this issue Dec 26, 2016 · 14 comments
Closed

Re-sync of contacts #463

sumairasaeed opened this issue Dec 26, 2016 · 14 comments

Comments

@sumairasaeed
Copy link
Contributor

We need to re-sync contacts if we make any change in addressbook. This code logic is currently commented out in code

@jekram
Copy link
Contributor

jekram commented Dec 26, 2016

OK. Show me the current design and the design before it was commented out?

@sumairasaeed
Copy link
Contributor Author

In current design, contact list of Kibo chat gets synced only once at the time of installation process. If there is any change in device phonebook after installation,no change is reflected in KiboChat App. Here is a logical flow which shows the steps performed for contacts sync during installation:
image

The logic for syncing contacts after installation is currently commented out in code. Here is a design for commented out logic. If the app was in background, and there was a change in device phonebook(e.g. contact added,edited/deleted) , a notification is fired when we come back to app screen.

Here is the flow of contact sync service which runs when notification is fired:
image

If app was closed at the time there was change in device phonebook, then no notification is triggered. We can have a "Refresh" button on app to cover this case.

@jekram
Copy link
Contributor

jekram commented Dec 27, 2016

What was the issue that caused us to comment it out? What is the effort to turn it on and test it?

@sumairasaeed
Copy link
Contributor Author

It was commented out when we were having performance issues with large addressbook. Effort to turn it ON and test it is minimal.

@jekram
Copy link
Contributor

jekram commented Dec 27, 2016

OK. Let's do this

@sumairasaeed
Copy link
Contributor Author

sumairasaeed commented Dec 27, 2016 via email

@jekram
Copy link
Contributor

jekram commented Dec 28, 2016

What else is new? Always leaving work incomplete.

Under what circumstances it did not worked?

@jekram
Copy link
Contributor

jekram commented Dec 29, 2016

Once this is fixed it needs to be published

@sumairasaeed
Copy link
Contributor Author

sumairasaeed commented Dec 29, 2016 via email

@sumairasaeed
Copy link
Contributor Author

Working on it. Debugged through breakpoints and logs. The notification for change in phonebook is being fired more than once. There is then clash when updating database. Trying to fix it.

@sumairasaeed
Copy link
Contributor Author

I have fixed the bug. Doing some testing and then will push the application in a while IA

@jekram
Copy link
Contributor

jekram commented Dec 29, 2016

Push it on both the place

@sumairasaeed
Copy link
Contributor Author

This task has been completed. Push to test flight is in progress. Once it completes processing, we can then push it to marketplace.
If app was running, contact list will get updated by itself.
If the application was closed when phonebook got changed, we can refresh contact list using "Refresh" button on Contacts tab as shown:
image

@sumairasaeed
Copy link
Contributor Author

Pushed to Test flight and market place. Status of marketplace is "Waiting for Review"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants