Store listing still not successing on iOS

Get help using Construct 2

Post » Wed Apr 29, 2015 7:13 am

Hi,

I make a new thread to recenter on my current problem with the store listing. This is the very last step I need to fix before publish my current project.

Can someone give me an explanation why in this capx the store listing never get a reply (not success, not failed)?
Image
This is a part of my full project, but this is the first layout played (just as a test)

And why this project sees the store listing always being successful, even without login in?
Image
This is a new project that I created, but I exported to the same folder, using the same intel-XDK project, with the same build options (adhoc), tested on the same device with the same way of login to a sandbox account.

In my normal (non test) code of the same project, the store listing fails (using phonegap IAP instead of C2 IAP)

For more informations about the problem, see this thread : viewtopic.php?f=146&t=129172

Thanks in advance.
B
23
S
5
G
1
Posts: 336
Reputation: 2,408

Post » Thu Apr 30, 2015 7:55 pm

I performed new tests, and here is what I noticed :

I deleted all layouts (but one) and all event sheets (but one) from my project, then I deleted all the conditions and actions from the remaining event sheet and all objects from the remaining layout. I reproduced exactly the second image in the previous post.
Exported, the store listing STILL gives no response with C2 IAP (not failed, not success) (note : with Phonegap IAP the result is "fail")

Then, I took the above mentionned capx and deleted ALL objects, plugins, music and sounds from the project, except IAP (C2), text and touch. And it worked out !

So the conclusion is that there is something in my project which stops IAP from working correctly.

Here is the list of what I am using :

AdmobAds
Audio
AudioHelper (external plugin)
Browser
Game Center
IAP
Keyboard
Touch
Mouse
LocalStorage (unused)
Webstorage
1 webfont (google font)

24 text objects
3 arrays
About 200 other objects
6 music (x2)
about 50 sounds (x2)

Any idea of what could be the problem? I don't have access to a mac before monday so I'm unable to make additional tests.
@Ashley , are you aware of this problem?

Thanks!
B
23
S
5
G
1
Posts: 336
Reputation: 2,408

Post » Fri May 01, 2015 9:48 am

There is no technical reason other plugins would affect IAP - the IAP object works by itself without any interaction with any other objects at all. This sounds like it's just a mistake in your events.
Scirra Founder
B
387
S
230
G
88
Posts: 24,249
Reputation: 192,450

Post » Tue May 05, 2015 7:21 pm

@Ashley
You mean there could be an error in this code?
Image
These are the only events in my test project.

The result I get from my tenths of hours of testing are driving me crazy. The above code can succeed or get no response depending on the circumstances.

The most useful test I did was to export the above code with all the plugins & object I mentionned above, but without any sound (only music). The store listing succeeded in this export. But if I only remove half the sounds or so, it fails (get no response)... I tried to remove the biggest sounds, then I tried to export my complete game project without any sound. It all fails.

Seriously, I don't know what to do right now. If someone wants to help me, please send me a private message and we can discuss about remuneration. I've lost more than 50 hours just exporting test files and have been trying everything possible and still have no clue of what's going on.

Anyone hinting me about the problem will have his name in the credits of Healer Quest, too.
Last edited by Rable on Wed May 06, 2015 1:02 pm, edited 1 time in total.
B
23
S
5
G
1
Posts: 336
Reputation: 2,408

Post » Tue May 05, 2015 9:23 pm

add : wait 3 secondes (for example) between add product ID and Request store listing
B
45
S
16
G
8
Posts: 792
Reputation: 8,306

Post » Thu May 07, 2015 11:51 am

@matrixreal
Thanks for the idea. I tested it and here are the results :

C2 IAP without assets : success !
C2 IAP with assets : no response
Phonegap IAP without assets : failure
Phonegap IAP with assets : failure

Exactly the same than when I dont add the wait 3 seconds action. :(

I also tried to add a first empty layout, then just go to the test layout (with the simple event sheet I showed) after 2 seconds. The results are :

C2 IAP no assets : no response
C2 IAP with assets : no response
Phonegap IAP no assets : failure
Phonegap IAP with assets : failure

Now I'm thinking about something else : maybe is it mandatory to use Xcode to make the IAP to work? I never used it, I'm using Application Loader. Not sure it could be related to that...
B
23
S
5
G
1
Posts: 336
Reputation: 2,408

Post » Thu May 07, 2015 7:54 pm

listen to me
its simple

on start of first layout (loading page) add product id "example" (and you add all the product id that you will use)
and after for example on shop page (layout)
when you touch a button then request store listing
when store listen success > buy product "example"

try it like that

finally what is the "assets" you use ?
B
45
S
16
G
8
Posts: 792
Reputation: 8,306

Post » Thu May 07, 2015 9:06 pm

@matrixreal

Thanks for your continuous help. I really appreciate it!
What you describe is very close to the workflow I made in my full game. The only difference is that the IDs are not added on the loading layout, but on the title screen layout (no possibility to make purchases on the title screen layout) and when request store listing is successful, I don't purchase a product but go to the shop layout (but I never reach the shop layout on iOS)

As a reminder, all the IAP system works wonder on Android, and I'm using the exact same code on iOS, so I really, really believe my events are correct (unless iOS and Android have different requirements event-wise, which I doubt).

Here is the assets & plugin list of my game :

AdmobAds
Audio
AudioHelper (external plugin)
Browser
Game Center
IAP
Keyboard
Touch
Mouse
LocalStorage (unused)
Webstorage
1 webfont (google font)

24 text objects
3 arrays
About 200 other objects
6 music (x2)
about 50 sounds (x2)

The only way for me to make "request store listing" successful in this code
Image
is to delete all sounds and use C2 IAP. Even when I do so, it doesn't seem much reliable (sometimes it gets ne response at all)
If I wait 3 seconds between the "Add product IDs" and "request store listing", it doesn't change anything.
If I only delete SOME sounds, it gets no answer
If I create a first layout, wait 2 sec, then go to the layout of the above event sheet, it never gets a response, even when deleting all the sounds.
If I use Phonegap IAP, I get a response : FAILED. Every time (even when removing all sounds).

This just has no sense, I'm switching to another export method. :(

EDIT : just to be 100% sure I'll make a last test with exactly the workflow you propose, but I believe it will fail, too.

And FYI I opened a DTS incident on my Apple developer accoutn for this problem, here is Apple's reply :

"Let me first state that I do not support the implementation of the Construct 2 SDK. I do however, support the use of the iOS StoreKit API. As such, I can respond to the use of the StoreKit APIs and you will need to investigate how these API’s are implemented in the framework you are using. If this is not possible, then I will have to refer you to the developer of Construct 2 who in turn can contact me via a DTS incident."


So I don't think they can help either.
B
23
S
5
G
1
Posts: 336
Reputation: 2,408

Post » Fri May 08, 2015 2:24 am

i find it
just pm me ;)
B
45
S
16
G
8
Posts: 792
Reputation: 8,306

Post » Fri May 08, 2015 11:06 am

@matrixreal could you please help me here .....

as I am facing the same situation like rable did ?

if you can share some light on this topic publicly then it would really help me & others out !!!
Image
B
36
S
13
G
1
Posts: 99
Reputation: 3,051

Next

Return to How do I....?

Who is online

Users browsing this forum: Darth Crusher, marcoscodas, Yahoo [Bot] and 8 guests