Bladko
June 11, 2013, 10:08pm
1
I made simple test. Compiled sample app with my test data from Sponsor Pay. I never was able to complete any tasks. All i can see is status “verifying” for required actions. And then i cannot collect any currency because no action is completed. And if some actions are ever completed i cannot collect any currency with error i described in previous post.
Is it me ? or is it plugin ? Latest build.
Tom
Bladko
June 15, 2013, 7:38pm
2
Could I ask for some help from CoronaLabs side, please ?
I cannot make you sample app work properly,
run wall of apps
install one of them
open it
come back to app
check if report exist under support button
run read coins from server -> crash
run app again, run read coins from server -> all is working like never happened, no coins are delivered
This can be related to user login ? i just use “abc123”
Jun 11 21:10:41 3DJigsaw[15749] <Warning>: [SP]: VCS request will be sent with url: https://api.sponsorpay.com/vcs/v1/new_credit.json?jailbroken=false&manufacturer=Apple%20Inc.<id=31419812&os_name=iPhone%20OS&screen_width=768&carrier_country=&carrier_name=&openudid= #########################################
Jun 11 21:10:41 3DJigsaw[15749] <Warning>: [SP]: Received response from SP VCS with status code: 200
Jun 11 21:10:41 3DJigsaw[15749] <Warning>: [SP]: Connection to SP
VCS finished loading. Body:
{“delta_of_coins”:“85.000”,“latest_transaction_id”:“33102404”}
Jun 11 21:10:42 com.apple.launchd[1] <Error>: (UIKitApplication:com.bladkoGames.jigsaw2[0xca0d]) Exited with code: 1
Jun 11 21:10:42 backboardd[27] <Warning>: Application
‘UIKitApplication:com.bladkoGames.jigsaw2[0xca0d]’ exited abnormally
with exit status 1
Thanks
Hi Tom,
Can you provide me with more information (build number, sample code used, any other relevant)?
Meanwhile, I will start a sample project from scratch and look at the issues you have reported in the other thread too.
Cheers,
David
Bladko
June 17, 2013, 4:52pm
4
Sample code from Corona samples
https://github.com/SponsorPay/mobile-sdk/raw/master/samples/corona-v1.0.zip
This was Corona 1135 i supose, last public build, but i also use daily builds.
What is important is userId
sponsorpay = require “plugin.sponsorpay”
local appId = AppID
local userId = “userABC”
local securityToken = SecurityToken
local token = sponsorpay.start( appId, userId, securityToken )
Hi Tom.
the user is definitively not the issue here.
You are using the sample code in which the only change you’ve made was the one referred in the last post, right?
Are you running the sample code on a device or emulator? iOS version?
Can you post your vcsListener?
I’ve sent you a PM with my contacts information if you want to have a direct chat on skype or by mail.
Cheers,
David
Bladko
June 18, 2013, 6:16pm
6
[lua]------------------------------
function Bladko.getCoinsFromServer( met )
– use this metod to add delta coins to UI component
local metoda = met
local function vListener( event )
local message = “”
if event.success then
if(metoda)then
pcall(metoda, event.vcsTransaction.deltaOfCoins)
end
else
end
end
sponsorpay.requestNewCoins( vListener, “Coins” )
end
function Bladko.showSponsorAds()
sponsorpay.launchOfferWall( “Coins” )
end[/lua]
ios 6.1.4 ipad 2 corona 1135
I’m sorry, but I’m unable to reproduce the crashing behaviour (even though I tried hard at it…)
Can you please add a debug log statement right before your pcall ?
Something like this:
local function vListener( event ) local message = "" if event.success then if(metoda)then print ("VCS coins received : " .. event.vcsTransaction.deltaOfCoins) pcall(metoda, event.vcsTransaction.deltaOfCoins) end end end
Thanks!
Hi Tom!
We’re about to release a new version of the plugin, just finishing with our internal QA process.
As soon as it’s available, we’ll let you know.
Cheers,
David
Bladko
June 15, 2013, 7:38pm
9
Could I ask for some help from CoronaLabs side, please ?
I cannot make you sample app work properly,
run wall of apps
install one of them
open it
come back to app
check if report exist under support button
run read coins from server -> crash
run app again, run read coins from server -> all is working like never happened, no coins are delivered
This can be related to user login ? i just use “abc123”
Jun 11 21:10:41 3DJigsaw[15749] <Warning>: [SP]: VCS request will be sent with url: https://api.sponsorpay.com/vcs/v1/new_credit.json?jailbroken=false&manufacturer=Apple%20Inc.<id=31419812&os_name=iPhone%20OS&screen_width=768&carrier_country=&carrier_name=&openudid= #########################################
Jun 11 21:10:41 3DJigsaw[15749] <Warning>: [SP]: Received response from SP VCS with status code: 200
Jun 11 21:10:41 3DJigsaw[15749] <Warning>: [SP]: Connection to SP
VCS finished loading. Body:
{“delta_of_coins”:“85.000”,“latest_transaction_id”:“33102404”}
Jun 11 21:10:42 com.apple.launchd[1] <Error>: (UIKitApplication:com.bladkoGames.jigsaw2[0xca0d]) Exited with code: 1
Jun 11 21:10:42 backboardd[27] <Warning>: Application
‘UIKitApplication:com.bladkoGames.jigsaw2[0xca0d]’ exited abnormally
with exit status 1
Thanks
Hi Tom,
Can you provide me with more information (build number, sample code used, any other relevant)?
Meanwhile, I will start a sample project from scratch and look at the issues you have reported in the other thread too.
Cheers,
David
Bladko
June 17, 2013, 4:52pm
11
Sample code from Corona samples
https://github.com/SponsorPay/mobile-sdk/raw/master/samples/corona-v1.0.zip
This was Corona 1135 i supose, last public build, but i also use daily builds.
What is important is userId
sponsorpay = require “plugin.sponsorpay”
local appId = AppID
local userId = “userABC”
local securityToken = SecurityToken
local token = sponsorpay.start( appId, userId, securityToken )
Hi Tom.
the user is definitively not the issue here.
You are using the sample code in which the only change you’ve made was the one referred in the last post, right?
Are you running the sample code on a device or emulator? iOS version?
Can you post your vcsListener?
I’ve sent you a PM with my contacts information if you want to have a direct chat on skype or by mail.
Cheers,
David
Bladko
June 18, 2013, 6:16pm
13
[lua]------------------------------
function Bladko.getCoinsFromServer( met )
– use this metod to add delta coins to UI component
local metoda = met
local function vListener( event )
local message = “”
if event.success then
if(metoda)then
pcall(metoda, event.vcsTransaction.deltaOfCoins)
end
else
end
end
sponsorpay.requestNewCoins( vListener, “Coins” )
end
function Bladko.showSponsorAds()
sponsorpay.launchOfferWall( “Coins” )
end[/lua]
ios 6.1.4 ipad 2 corona 1135
I’m sorry, but I’m unable to reproduce the crashing behaviour (even though I tried hard at it…)
Can you please add a debug log statement right before your pcall ?
Something like this:
local function vListener( event ) local message = "" if event.success then if(metoda)then print ("VCS coins received : " .. event.vcsTransaction.deltaOfCoins) pcall(metoda, event.vcsTransaction.deltaOfCoins) end end end
Thanks!
Hi Tom!
We’re about to release a new version of the plugin, just finishing with our internal QA process.
As soon as it’s available, we’ll let you know.
Cheers,
David