Voting: 
Vote up!
0 Votes
2 Replies
Solved

ios - transaction

Problem posted by Diego Malpartida on Mar 14, 2017 18:59 EDT

Hello Kony, When I call kony.db.transaction, for some reason the transaction callback function is never called. What is even more weird is that the success callback function is being called. Also the previous transaction (call to kony.db.transaction) works fine. This happens only in iOS. In android everything is fine. Why would this be happening?  Thanks in advance.

Posted In
Kony Inc Kony Studio
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

Thanks,

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