﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Crosslight - Is there any events to check the response of sync in client-side?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Is-there-any-events-to-check-the-response-of-sync-in-client-side/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Is there any events to check the response of sync in client-side?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Is-there-any-events-to-check-the-response-of-sync-in-client-side/</link><pubDate>Tue, 20 Oct 2015 02:08:28 GMT</pubDate><dc:creator>Arief</dc:creator><description>&lt;p&gt;Hi Jyothish,&lt;br&gt;&lt;br&gt;I will also write, so people who want to build their own Sync can find the solutions here:&lt;/p&gt;&lt;p&gt;Based from your sample that I check there are three problems:&lt;br&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;You need two more permission in Android &lt;b&gt;ACCESS_NETWORK_STATE&lt;/b&gt; &lt;b&gt;&amp;amp; CHANGE_NETWORK_STATE &lt;/b&gt;(Normally you also need &lt;b&gt;INTERNET&lt;/b&gt; permission but usually already generated by our template).&lt;/li&gt;&lt;li&gt;Your &lt;b&gt;ModifiedDate must be NOT Nullable &lt;/b&gt;so you must update that in your database, after that you need to delete your Account (because you want to Sync it) in EDMX and add it again. Then right click and run custom tools in each .tt files.&lt;/li&gt;&lt;li&gt;You forget to change your IP in your AppService I presume, you need to change it according to your WebAPI (in this project is &lt;b&gt;YourIP:WebAPIPort&lt;/b&gt;).&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;How do I check:&lt;/div&gt;&lt;div&gt;Server Side:&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Run your WebAPI and browse to your IP:Port, check whether there is error by navigating to Object you want synchronize for example &lt;b&gt;IP:Port/data/YourProject/ObjectName&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the example above I know that you don't have ModifiedDate in your database from error message in WebAPI, but you have it in your DomainModel. So what I need to do is add the ModifiedDate in your Database.&lt;/li&gt;&lt;li&gt;Problem number 3 can be easily checked if you can't browse to &lt;b&gt;YourIP:WebAPIPort &lt;/b&gt;from your phone/simulator.&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Client Side:&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;It will be easier to debugging if you add our&amp;nbsp;&lt;b&gt;&lt;a href="http://git.intersoftpt.com/projects/CROS/repos/frameworks/browse" target="_blank"&gt;I&lt;/a&gt;&lt;a href="http://git.intersoftpt.com/projects/CROS/repos/frameworks/browse" target="_blank"&gt;ntersoft.AppFramework&amp;nbsp;Project&lt;/a&gt;&amp;nbsp;&lt;/b&gt;in your project (no difference with .dll version), almost all the process handled by AppFramework so you can build your project easier.&lt;/li&gt;&lt;li&gt;Start by checking and putting in breakpoints in&lt;b&gt;&amp;nbsp;&lt;i&gt;SynchronizeData()&lt;/i&gt; &lt;/b&gt;inside &lt;b&gt;ModelServices/SynchronizationRestRepository.cs&lt;/b&gt; and&lt;b&gt;&amp;nbsp;&lt;i&gt;SynchronizeDataAsync()&lt;/i&gt; &lt;/b&gt;inside &lt;b&gt;Services/SynchronizationService.cs &lt;/b&gt;from your Intersoft.AppFramework.&lt;/li&gt;&lt;li&gt;In the example above, the process stop at&amp;nbsp;&lt;b&gt;&lt;i&gt;reachabilityService.GetConnectionStatus() != NetworkConnectionStatus.NoConnection&lt;/i&gt;&lt;/b&gt; even though our Internet is working perfectly, that's the problem number 1.&lt;/li&gt;&lt;li&gt;In the problem number 2 actually the breakpoint lead us to other files which are &lt;b&gt;Extensions/IEntityExtensions.cs&lt;/b&gt;, as you can see you can't have empty or null ModifiedDate because ModifiedDate is mandatory for Synchronization.&lt;/li&gt;&lt;li&gt;There is actually one more place to check in Client which is&amp;nbsp;&lt;i&gt;&lt;b&gt;OnDataSynchronized() &lt;/b&gt;&lt;/i&gt;which is a method from &lt;b&gt;DataListViewModelBase&lt;/b&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;Hope that will helps!&lt;/div&gt;</description></item><item><title>Is there any events to check the response of sync in client-side?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Is-there-any-events-to-check-the-response-of-sync-in-client-side/</link><pubDate>Mon, 19 Oct 2015 03:41:46 GMT</pubDate><dc:creator>jyothish</dc:creator><description>&lt;p&gt;How can i check the response of sync in client side? I have configured the project as per your documentation. But client-side entities are not getting generated and synced. Your sample app is working. I compared it with mine and seems no difference. Guide me on How can i check the response of sync in client side?&lt;/p&gt;</description></item></channel></rss>