Important! A new Community experience launched on September 26, 2017. Read more about it here or continue to Base Camp.
Vote up!
0 Votes
2 Replies

ios - transaction

Diego Malpartida on Mar 14, 2017 18:59 EDT

Posted In
Vote up!
0 votes
Vote down!

Hi Diego,

We have referred your comments and created the sample app with kony.db.transaction, but unfortunately we are unable to recreate the reported issue at our end.

Please find the attached sample app for reference.

In the attached sample app, transaction function is calling in iPhone.

We have verified the sample app with 7.2.1GA plugins and please attached plugin details.

Please verify the attached sample app and If you need any further clarification, please feel free to get back with your queries and we will be happy to assist you further


Ravi Kumar

Replied by: Mar 22, 2017 03:11 EDT
Vote up!
0 votes
Vote down!

I found the problem was that the transaction was being initiated within another transaction. This caused the transaction to not be executed and it gives an error saying "cannot start transaction within transaction". This only happens in iOS. In Android I can initiate transaction within transactions. I found that this happens because in Android the whenever a transaction is started, the transaction callback is executed in another thread. However, in iOS, all is executed in the same thread, I wonder if there is a solution to allow in iOS to start transactions within transactions. It could be a plugin or something like that.

Thanks in advance.

Replied by: Jun 01, 2017 16:56 EDT