Black screen with in app purchases.

Apparently all is ok, even I can hear the sound when you make the purchase inside my transactioncallback function.

but when it finishs the transationcallback all is a black screen, I am testing in apple store. I can hear the sounds of my scenes but all is black.
I am using composer and corona build 2014.2340 . My ipad console doesn’t show me any lua error.

I have all functions in a composer scene. The transationcall back must be local to access to local functions.

xcode log after transaction

Jul 15 16:04:54 Noes-iPad Penguins[471] <Warning>: Comprando penguins.coinspack1
Jul 15 16:04:54 Noes-iPad Penguins[471] <Warning>: penguins.coinspack1
Jul 15 16:04:56 Noes-iPad backupd[475] <Warning>: INFO: Account changed (enabled=0, accountID=1662942812)
Jul 15 16:04:56 Noes-iPad kernel[0] <Debug>: AppleKeyStore: operation failed (pid: 475 sel: 23 ret: e00002f0)
Jul 15 16:04:56 Noes-iPad syncdefaultsd[473] <Notice>: (Note ) SYDAccount: no account
Jul 15 16:04:57 Noes-iPad aosnotifyd[42] <Notice>: 2014-07-15 16:04:57.466 aosnotifyd[42:2311]: -[ACAccount isEnabledForDataclass:] should not be relied on to get the status of FMiP. It may return inaccurate results. Use AADeviceLocatorService instead.
Jul 15 16:04:58 Noes-iPad syncdefaultsd[473] <Error>: TASK-ASSERT: cfurlcache - ProcessCacheTask - FAILED to get task-assertion, going commando with 1 items to process.
Jul 15 16:05:26 Noes-iPad syncdefaultsd[473] <Notice>: (Note ) SYDAccount: no account
Jul 15 16:05:26 Noes-iPad kernel[0] <Debug>: 011143.203512 wlan.A[263] AppleBCMWLANNetManager::checkRealTimeTraffic():  now 11143.203481875 num entries 4
Jul 15 16:05:26 Noes-iPad kernel[0] <Debug>: 011143.203592 wlan.A[264] AppleBCMWLANCore::dumpWmeCounters():  per TIDs tx counters: 21947 1994 0 0 0 500 387 0, per TIDs rx counters: 2854 0 0 0 32147 0 0 0
Jul 15 16:05:26 Noes-iPad kernel[0] <Debug>: 011143.203661 wlan.A[265] AppleBCMWLANCore::dumpWmeCounters():                AWDL: Tx 0 0 0 0 0 0 0 0,                   Rx: 0 0 0 0 0 0 0 0
Jul 15 16:05:26 Noes-iPad backupd[478] <Warning>: INFO: Account changed (enabled=0, accountID=1662942812)
Jul 15 16:05:26 Noes-iPad Penguins[471] <Warning>: Sencods since last time 115
Jul 15 16:05:27 Noes-iPad Penguins[471] <Warning>: Add 0 lives
Jul 15 16:05:27 Noes-iPad kernel[0] <Debug>: AppleKeyStore: operation failed (pid: 478 sel: 23 ret: e00002f0)
Jul 15 16:05:27 Noes-iPad itunesstored[86] <Warning>: Could not load library [22]
Jul 15 16:05:27 Noes-iPad aosnotifyd[42] <Notice>: 2014-07-15 16:05:27.579 aosnotifyd[42:2311]: -[ACAccount isEnabledForDataclass:] should not be relied on to get the status of FMiP. It may return inaccurate results. Use AADeviceLocatorService instead.
Jul 15 16:05:27 Noes-iPad accountsd[79] <Notice>: 2014-07-15 16:05:27.634 accountsd[79:35699]: ACDClient {Name: itunesstored, Bundle ID: (null), PID: 86} is trying to verify account credentials for account: noeguertest@gmail.com
Jul 15 16:05:27 Noes-iPad accountsd[79] <Warning>: NSScanner: nil string argument
Jul 15 16:05:27 Noes-iPad syncdefaultsd[473] <Error>: TASK-ASSERT: cfurlcache - ProcessCacheTask - FAILED to get task-assertion, going commando with 1 items to process.
Jul 15 16:05:31 Noes-iPad backupd[478] <Warning>: INFO: Account changed (enabled=0, accountID=1662942812)
Jul 15 16:05:31 Noes-iPad kernel[0] <Debug>: AppleKeyStore: operation failed (pid: 478 sel: 23 ret: e00002f0)
Jul 15 16:05:31 Noes-iPad syncdefaultsd[473] <Notice>: (Note ) SYDAccount: no account
Jul 15 16:05:31 Noes-iPad backupd[478] <Warning>: INFO: Account changed (enabled=0, accountID=1662942812)
Jul 15 16:05:31 Noes-iPad syncdefaultsd[473] <Notice>: (Note ) SYDAccount: no account
Jul 15 16:05:31 Noes-iPad kernel[0] <Debug>: AppleKeyStore: operation failed (pid: 478 sel: 23 ret: e00002f0)
Jul 15 16:05:32 Noes-iPad aosnotifyd[42] <Notice>: 2014-07-15 16:05:32.026 aosnotifyd[42:2311]: -[ACAccount isEnabledForDataclass:] should not be relied on to get the status of FMiP. It may return inaccurate results. Use AADeviceLocatorService instead.
Jul 15 16:05:32 Noes-iPad aosnotifyd[42] <Notice>: 2014-07-15 16:05:32.167 aosnotifyd[42:2311]: -[ACAccount isEnabledForDataclass:] should not be relied on to get the status of FMiP. It may return inaccurate results. Use AADeviceLocatorService instead.
Jul 15 16:05:32 Noes-iPad syncdefaultsd[473] <Error>: TASK-ASSERT: cfurlcache - ProcessCacheTask - FAILED to get task-assertion, going commando with 1 items to process.

Jul 15 16:05:33 Noes-iPad Penguins[471] <Warning>: transactionCallback: Received event storeTransaction
Jul 15 16:05:33 Noes-iPad Penguins[471] <Warning>: state: purchased
Jul 15 16:05:33 Noes-iPad Penguins[471] <Warning>: errorType: none
Jul 15 16:05:33 Noes-iPad Penguins[471] <Warning>: errorString: nil

 

I found the problem, I let it here so perhaps can be useful for anyone.

I had my shop in a scene called “maps”

The problem was that I was preloading it with composer.loadScene( “maps” ) in :

local function onSystemEvent( event )
    if event.type == “applicationStart” or event.type == “applicationResume” then

       <here>

   end

So when the purchase was completed the application tried to reload again the same scene

I know stupid…
Regards

I found the problem, I let it here so perhaps can be useful for anyone.

I had my shop in a scene called “maps”

The problem was that I was preloading it with composer.loadScene( “maps” ) in :

local function onSystemEvent( event )
    if event.type == “applicationStart” or event.type == “applicationResume” then

       <here>

   end

So when the purchase was completed the application tried to reload again the same scene

I know stupid…
Regards