cancel
Showing results for 
Search instead for 
Did you mean: 

application takes too much time to fetch data on iPhone

Former Member
0 Kudos

I we have configured mbo on SUP server . when we hit for data from iPhone it taking to much time to fetch data .

we are using auto generated code.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Yogesh

Try using different Synchronization Groups for differnt MBOs and try to synchronize only the needed the time.

Thanks and regards,

Rinzy Deena Mathews.

Former Member
0 Kudos

Hi,

define too much time and data volume.

It is correct - forst time it takes ages - but after that it is fast. Because DB is available and subscrition is done.

I know it is a stupid question, but is it possible you simply subscribe every time you sync and/or you delete DB as well? Do you call sync or syncifnecessary?

Regards,

Oliver

Former Member
0 Kudos

Yeah olive we were doing subscription again and again ,actually we are facing issue with async online login as it is taking too much time and some time never authenticate its very hard time with us .We are using 2G network network .

here is the code

if(![Create_POv2_Create_POv2DB databaseExists])

{

[Create_POv2_Create_POv2DB createDatabase];

}

[MBOLogger setLogLevel:LOG_INFO];

SUPCallbackHandler *databaseCH = [SUPCallbackHandler newInstance];

[Create_POv2_Create_POv2DB registerCallbackHandler:databaseCH];

[Create_POv2_Create_POv2DB startBackgroundSynchronization];

[NSThread sleepForTimeInterval:2];

NSInteger result = [SUPMessageClient start];

if (result == kSUPMessageClientSuccess)

{

[Create_POv2_Create_POv2DB beginOnlineLogin:@"supAdmin" password:@"s3pAdmin"];

SUPCallbackHandler* databaseCH = (SUPCallbackHandler *)[Create_POv2_Create_POv2DB callbackHandler];

while([databaseCH loginSuccessCount] < 1)

{

NSLog(@"logging to dataBase");

[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:1]];

}

}

else

{

NSLog(@"failure in connection");

}

Can you please suggest way to do things offline as we are unable offlineLogin as it fails though we authenticated successfully previously .

Thanks in advance ,

Yogesh

Former Member
0 Kudos

Hi yogesh,

Save database locally now u can login offline then execute only sync group.

~Rahul