Unknown App when confirming in-app purchase - iphone

I have created a newsstand app and have everything working. The only issues I have now are:
When I click 'subscribe' and the dialogue box pops up to confirm the in app purchase it says
Confirm Subscription
Do you want subscribe to Unknown App for free?
[Environment: Sandbox]
Why does it say Unknown App? Everything else works (receipt validation, completing the transaction & co.)
Also, will the [Environment: Sandbox] go away automatically once I upload it to the app store and download it for real? Is there something in my code that I am missing that sends the in app purchase request to the sandbox? Or is it just because i am using a test device that has the app compiled onto it from XCode.

If your app is not in app store, it shows you the [Environment: Sandbox]. It will automatically go away once you uploaded app and your app is in app store.
For "Unknown App":
You need to add text in inApp purchase section in iTunes connect. If you haven't done that it will show you "Unknown App" on message which comes on iOS pop-up.When you activate in-app purchase by filling all information in inApp purchase section, pop-up will not show you "Unknown App", rather the pop-up will mention your app name.
Hope this will help you.

If your app is not in app store, it shows you the [Environment: Sandbox]. it will automatically will go away once you uploaded and your app is in app store.

If your binary has been rejected by Apple, the IAP products submitted with it should also show up as rejected. When you try and purchase a rejected IAP within the app, the confirmation screen will show the aforementioned "Do you want to buy one Unknown App...".
To correct this you should be able to make a small change to each IAP product in iTunes Connect. Then simply change it back, then the rejected flag should go away (and be replaced by waiting for review. For example, I added an 's' to the Display Name for the English language of each product. Then went right back in and removed the 's'.
This may not be acceptable to Apple if the reason for your rejection centers around your use of In-App Purchases.

I suggest to check your itunesconnect account.
Goto your Specific App "NewStandApp" .-> Manage InAppPurchases. Now check Reference Name you have Added with your ProductID.
Product_Id your are referring in project/app (sandbox environment) might be connected with app name "Unknown app"

Related

What does it mean when in-app purchases are "in review" while the app binary itself is still "waiting for review"?

I am a bit confused by this. How is Apple supposed to review in app purchase content without the app? All my IAPs are "in review" while the app itself is "waiting for review" since two days.
This is not too programming related BUT it might save other developers time to know this can happen and why. What I did:
1) Updloaded IAP content packages so I can test it.
2) Assigned IAP content packages to app, then submitted app via Xcode.
3) Found bug and rejected binary.
4) Fixed bug, resubmitted binary. But this time no way to assign the IAPs to app. They were already "waiting for review".
Did my app get stuck in a deadlock situation? Did anyone else ever experience this?
I suspect that the In App Purchases will be reviewed once your app goes into review. Your In App Purchases are already associated with the app, are they not?
However I would recommend you contact Apple through iTunes connect. I've always had good success with this in the past.
Select the 'Contact Us' link at the bottom of the iTunes connect page. In the form that appears, select App Review and Check Review Status, and then select the 'contact us' link in the text that appears.
Then describe your issue in the form, and they should tell you what you need to do.
Here is a way to fix this (its not ideal):
Delete in app purchase that is "waiting for review" in iTunes connect.
Recreate in app purchase with a different product id (you can just add a number to the end).
Refractor old references in your purchase code to the new id.
Rebuild, re-associate the product, and re-upload!

In App purchase is getting rejected again and again

i have implemented the in app purchase in my application and added few in app purchases. on itunes connect i have filled all the details for the in app purchases. Initially the status of in app purchase was "waiting for review" and i was able to test in app purchase in sandbox env. but after every 4 days, in app purchases gets new status "developer action needed" and in the language section there is a "rejected" sign of in app purchase. so to make this use able again i have been using to make little change in description, which makes the in app purchase again in review
as history of the project is: right now application version 1.0 is available on app store in which in app purchases are not implemented
and i have added new application version 2.0 which is in "rejected by developer" state
so i just want to know why itunes connect team is rejecting in app purchase again and again?
also im not getting any email regarding this rejection
any one guide me what is the solution to this problem or any one else has faced this issue before?
Have you uploaded new version on apple store which is having in-app purchase code implemented ? if not then they will reject the in-app purchase items.
also if apple is rejecting your in-app purchased , then have you provided all the details to them. As if they find the in-app purchase improper then they can can reject it. Provide them proper details and proper screen shot for the same.
Also if apple is rejecting your in-app purchase then you may can ask apple review team about the issue. Use the Link. they will let you know the exact issue.
Hope this will help you.
I recently had this problem with an app submitted to Apple.
There is a fallback system that needs to be in place for server side in app purchase validation.
It is documented in Apple, but VERY well hidden in tech note :
http://developer.apple.com/library/ios/#technotes/tn2259/_index.html
Here is the way to do it :
"Always verify your receipt first with the production URL; proceed to verify with the sandbox URL if you receive a 21007 status code.
Following this approach ensures that you do not have to switch between URLs while your application is being tested or reviewed in the sandbox or is live in the App Store."

in-app purchase sandbox mystery: phone left in state unable to initiate purchase

I have an ad-hoc deployment of my iOS game, which includes in-app purchase. It is correctly set up with a purchasable item on itunes, and I have test users on itunes. I am able to successfully test it with my own iPod, and with a friend's iPod -- I can choose the item to purchase, get the price info correctly from the Apple server, choose to buy, enter the Apple ID and password for one of the test users, an the purchase completes successfully.
Another friend also installed the game on his iPhone and was starting to look at in-app purchase, but he followed an incorrect procedure, an now we can't get in-app purchase to work on his iPhone at all.
Specifically, he correctly signed himself out of the Store via the Settings application, then ran the game and chose the item to purchase. It correctly retrieved the price information. However, when the standard UI popped up and where he was supposed to click "Use an Existing Apple ID" he chose "Create a New Apple ID" by mistake. This brought him out of the game (game was sent to the background) and over to the web page to fill in the details for a new user. He realized that was wrong and returned to the game. But when he then tried to repeat he process, after retrieving the price info (again successfully), when he went to initiate the purchase, it errors out and never shows the standard UI where he can choose Existing Apple ID or Create New. So it's like his phone was left in a funny state. He tried rebooting the phone, reinstalling the app. Same problem. Then I recommended that he log in to the Store via the Settings app using his regular account, download a couple free apps, and then log out of the Store via the Settings app and try again. My thought was that this full process would somehow "clear out" whatever bad state his phone was in. But no dice. Same problem.
We can't figure out what state his device is in such that it fails when going to the purchase step of this sandbox in-app purchase process. I am still able to successfully complete the process on more than one other devices, so I don't think it's a problem with the state of the purchasable item or test users on itunes. It seems to be something specific to his device. I also had him using iPhone Config. Utility to watch the Console log as he went through this process. Very little was seen -- just an error code coming back after trying to initiate the purchase. (Nothing about PIPELINING errors and other web-service type errors that I've seen before when in-app purchase wasn't set up correctly on the sandbox.)
Any ideas on what state his phone could be in with respect to (sandbox) in-app purchase, and how we can clear it out?
Reset your network settings (Settings -> General -> Reset -> Network Settings)
Turn off your iPhone and turn it on again.
Wait for 15 min (This is the time iOS caches AppStore credentials)
Try running the app again.

Why doesn't in-app purchase show my application's name when testing in the sandbox?

I have completed in app purchase for my application. Its working fine.
The only problem i have , when i test in app purchase in sandbox enviornment, It shows a message do you want to buy an "un known app" for 1.79. why doesnt it shows the name of the app.
Plus when i am going to upload the final binary to app store. what i need to do to swrich in app purchase from sandbox enviornment to real in app purchase or it will switch automaticall?
Thanks guys
Probably your configuration on iTunes connect for this in app purchase is wrong, maybe you forgot to enter the name.
Go to iTunes connect, Manage you in app purchases, select the desired app, and make sure that you have all the fields correctly filled.
When you release on the app store, you don't have to do anything, the sandbox environment is just used when you are developing, when the app is uploaded to the app store, this behavior changes and you can't use your sandbox account anymore
Hope that helps.
When I added in-app purchase support to my application, I had already released a version so there was an entry in iTunes Connect. But I've read that you need to add a new application in iTunes Connect, but check the option to upload a binary later. Then you can enable In-App Purchase on it and configure items.
And your sandbox does not go away after the application is submitted. The In-App Purchase system determines whether to use a sandbox based on the account that is currently logged in to the store on the device. I think as long as you don't have a credit card (or any payment information?) associated with the account, and the account is designated as a In-App Purchase Test User in iTunes Connect, it will use the sandbox. You can log out and use a different account through the "Store" item in Settings.

In App Purchase Problem

please help me , i am getting product count 0 in response.product.
i have followed all the steps of in app purchase in documentation .
1.Provisioning profile and i allowed in app purchase.
2.Dummy app binary uploaded to itunes and rejected that by myself.
3.Setup 2 products in itunes in app purchase and app identifier was selected.
All the things seems fine but i am getting product count 0.
Please let me know how can i solve this issue .
Thanks
Make sure to check the "Cleared for Sale" checkbox for the in-app purchase in iTunes Connect. Note that this does not submit the in-app purchase for approval to Apple. To do that, you need to click the green "Approve" button in the upper right hand corner.
All you should need to do to test the in-App purchase is check the "Cleared for Sale" checkbox for the purchase in iTunes Connect.
Don't reject your binary. The binary has to be waiting for review (or cleared for sale) before the store will work right.
Also make sure each of your in app purchase items are cleared for sale on iTunes Connect.
You can create a new application but not upload the binary on iTunes Connect. This way your app is in the "Waiting for binary" (or something like that) state.
Then you're binary won't be rejected.
If anybody needs help implementing the In App Purchase feature, there's a complete sample here
are you sure add Product information in iTunes conect.
Enter iTunes Connect, Click Manage Your In app Purchases link, add Product information and id.
I post a summary in my msn space http://leefj.spaces.live.com/blog/cns!ADF54DD0A549AD9B!471.entry