Hi,
I have a doubt regarding offline store creation during subsequent login to application.
Below code is used to create offline store and it's working fine.
private static ODataOfflineStore offlineStore;
ODataOfflineStoreOptions options = new ODataOfflineStoreOptions();
options.host = url.getHost();
options.port = String.valueOf(url.getPort());
options.enableHTTPS = lgCtx.isHttps();
options.serviceRoot= endPointURL;
IManagerConfigurator configurator =
LogonUIFacade.getInstance().getLogonConfigurator(context);
HttpConversationManager manager = new HttpConversationManager(context);
configurator.configure(manager);
options.conversationManager = manager;
options.enableRepeatableRequests = false;
options.storeName="flight";
offlineStore = new ODataOfflineStore(context);
offlineStore.openStoreSync(options);
My question is do we need to create new offline store each time we login to application.
If we create offline store each time we login to application then all the data will be synced again!!!
Is there any API to get the instance of already created offline store so that it can be used for subsequent operations?
Regards,
Sukesh N