In App Purchase Bug - SKProduct Request

Hi,
This time I am struggling with two very strange problems. The In App Purchase functionality seems buggy.
Problem 1:
The SKProductRequest works on one device (iOS version 4.02), but not on the other (iOS 4.2). None of the devices are jailbreaked, both are the same model (iPhone 4). The one on which the request is not working, just fails (but without crashing):
- (void)request:(SKRequest *)request didFailWithError:(NSError *)error
The SKProduct Request starts automatically with the application launch. But and if for any reason (e.g. a network timeout) the user is able to "update" the price list (=re-initiating the SKProduct request) If re-initiated, the app is crashing. The wired thing:
Problem 2:
The bug only appears, if the device is not connected to XCode while running. In other words, I am able to update the SKProduct Request as often as possible if the device is connected to XCode without any crash- the code seems to work. -> I am not able to trace any possible bug with the help of XCode, because the error does not appear on the device if it is connected..
- (void) requestProductData {
if(isFinishedProductRequest) {
NSLog(@"request products for %@", identifierCash);
self._request = [[SKProductsRequest alloc]
initWithProductIdentifiers:
[NSSet setWithObject: identifierCash]];
_request.delegate = self;
isFinishedProductRequest = FALSE;
[_request start];
- (void)requestDidFinish:(SKRequest *)request {
NSLog(@"purchase request finished");
isFinishedProductRequest = TRUE;
if ( [cashServiceDelegate respondsToSelector:@selector(appleProductRequestDidFinish)]){
[cashServiceDelegate appleProductRequestDidFinish];
[self._request release];
and the cash delegate
- (void) appleProductRequestDidFinish {
isFinishedAppleCashRequest = TRUE;
if (applePaymentTransactionController.productsArray != nil && [applePaymentTransactionController.productsArray count] > 0) {
SKProduct * product = [applePaymentTransactionController.productsArray objectAtIndex:0];
NSLog(@"%@", [product localizedDescription]);
price = [[product price] floatValue];
priceLocale = [product priceLocale];
if ([viewDelegate respondsToSelector:@selector(updatePrice)]){
[viewDelegate performSelector:@selector(updatePrice)];
}else {
[self alertNoAppleProducts];
if ([viewDelegate respondsToSelector:@selector(hideSmallLoadingView)]){
[viewDelegate performSelector:@selector(hideSmallLoadingView)];
I was also looking at the XCode Organizer Device Logs, but they were not really helpful. I will post them, when I will get the 2nd device where the SKProduct Request is working (on mine, its not)

I could solve my two problems.
1.
To start in app purchase again on the one mobile, I just had to delete and reinstall the app. The simple thing This list was helpful http://troybrant.net/blog/2010/01/invalid-product-ids/
2.
The crash when re-calling the SKProductRequest was because i had to super-deallocs in my dealloc method. Sluttery.. - but I am confused why two super-deallocs are working when the app is running in XCode..

Similar Messages

  • My kid accidentally made an in-app purchase,can I request a refund from apple?

    My kid accidentally made an in-app purchase,it's not much only 2 dollars but my bank was overdrafted,so the transaction was not paid for,and now I can't update my apps,can I get a refund from apple(because it was an accidental purchase) so I can start using my app store account again?

    Plea your case here:
    http://www.apple.com/emea/support/itunes/contact.html

  • HT4009 In-apps purchase bug

    My order number MHLWDYNH2K
    i only purchase once and it pop out 4 instead of 1.
    and my bank dont have that much amount and this is why i cannot get my purchase done.
    please advise me what should i do now?
    is it very irritating.

    Follow through this:
    iTunes Store: About In-App Purchases

  • I have purchased a in app purchase of a 'gcsepod' for my little brother however the purchase does not come up in the app and requests me to buy another. How do i solve this? I have also got the receipt for this purchase.

    i have purchased a in app purchase of a 'gcsepod' for my little brother however the purchase does not come up in the app and requests me to buy another. How do i solve this? I have also got the receipt for this purchase.

    I'm not sure I can make sense of this but without asking too many questions, you can resolve your question by contacting iTunes direct.
    Apple - Support - iTunes - Contact Us
    But they will be wondering about the reference to hacking and you feeling bad about getting something for free.
    Best step in my view is to make sure you don't get similarly involved in future.  You must know roughly what you were doing.   Then writie it off to a not to be repeated experience.

  • HT4009 request refund for in-app purchase

    Hello,
    I've been going around and around trying to find how to submit a request for refund of an in-app purchase that I never received.
    I click on "report a problem" yet, no options to report a problem are available, just a huge list of FAQs and other articles on policies etc.
    If someone can direct me where or how to actually submit the request, I would be grateful for that.
    But, I'll submit my request here anyhow.
    I was emailed a Receipt for the Purchase by iTunes. Upon seeing the receipt I was surprised, because when I attempted to make the in-app purchase it did not complete, and i did not receive the product I was trying to purchase. Although, I am apparently being charge for it. I pasted a copy of the receipt below.
    So, my request is either a refund or credit toward my next iTunes purchase.
    Thank you.
    Deborah
    iTunes user ID:
    COPY OF EMAILED RECEIPT OF PURCHASE:
    Billed To:
    xxxxxxxxxxxxxxxxxxx
       Oakland, CA 94610-2730
      USA
    Order Number: MG******DG
    Receipt Date: 05/02/12
    Order Total: $4.99
    Billed To: Visa .... 9018
    Item
    Seller
    Type
    Unit Price
      Virtual City Playground, 55  Invest Points 
         Report a Problem     
      G5 Entertainment 
      In-App Purchase           
    $4.99
    Subtotal:
    $4.99
    Tax:
    $0.00
    Order Total:
    $4.99
    Please retain for your records.
    Please See Below For Terms And Conditions Pertaining To This Order.
    Apple Inc.
    You can find the iTunes Store Terms of Sale and Sales Policies by launching your iTunes application and clicking on Terms of Sale or Sales Policies
      Answers to frequently asked questions regarding the iTunes Store can be found at http://www.apple.com/support/itunes/store/   
      Apple ID Summary •   Purchase History
    Apple respects your privacy.
    Information regarding your personal information can be viewed at http://www.apple.com/legal/privacy/
      Copyright © 2011 Apple Inc. All rights reserved
    <Personal Information Edited by Host>

    How the **** do you contact Apple re refunding money taken out of my bank account for failed Bejewelled inapp purchases that said error made me sign into itunes account, update my security number for credit card and still didnt download????? Going round and roundin circles trying to report a problem with it
    how were you able to do it

  • In-app purchase Buy Now: The item you requested is invalid (Error id: 30244)

    I am testing my free app that provides a subscription for in-app purchase against the App Store ('live testing' with sandbox account). I download and run the app from the App World OK, when I try to buy the subscription in-app it has me log on to App World OK, and shows me the virtual good OK.
    Once I click "Buy Now" App World tells me: "The item you requested is invalid. (Error id: 30244)". The transaction does not proceed, therer is no Exceptions in the Event log.
    Anybody came across this already or maybe can provide me with a suggestion where to look up the meaning of this error id?
    Thanks.

    same here. this thread suggest that it's carrier related issue
    http://supportforums.blackberry.com/t5/Payment-Service/Error-quot-The-Item-you-requested-is-invalid-...
    Twitter: @gyubok

  • Free apps. on ipad keeps requesting credit details for purchase

    free apps. on ipad keeps requesting credit details for purchase?

    You can create an iTune and App Store account without credit card details
    1. Sign out of current Apple ID if you are sign-in to one (important)
    2. Go to App Store and select a free app
    3. Tap INSTALL APP
    4. Create New Apple ID
    5. Confirm Your Country
    6. Agree with Terms and Conditions
    7. Fill in your Apple ID and Password (you must create a new Apple ID; don't use your old Apple ID)
    8. Create and answer your secret question
    9. Select NONE for Payment Method
    10. Fill in Billing Address
    11. Submit application for new Apple ID
    12. Wait for verification email
    13. When email arrive, verify your account
    14. Start downloading your free apps

  • HT204396 how do I submit a refund request for unauthorized in-app purchase?

    How do a submit a refund request for unauthorized in-app purchase?

    If you didn't make the purchase, and nobody else has access to your account or devices and made it, then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • HT4009 request refund for in-app purchases made by minor

    Where and how do I request a reund for in-app purchases made by a minor

    To Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • HT201304 Where is the form to request the "refund for in-app purchases made by a minor?

    Where is the refund request form located on your website. I am looking for the "Refund for in-app purchases made by a minor"

    How to report/refund an issue with your iTunes Store, App Store, Mac App Store, or iBooks Store purchase
    In th furuter set the Restrictions that prevent in-app purchases
    Also you can try:
    https://getsupport.apple.com/ServiceOptionAction.do

  • HT204396 How to I submit a "Refund for In-app purchases made by a minor" request?

    Received an email from "insideapple" about applying for refunds for in-app purchases made by a minor.  I want to request refunds on quite a few in-app purchases made by a child without my knowledge/permission.  The email about getting a refund had a link. The link took me here.
    How do I submit a refund request?

    Hi  mario_08
    You are not addressing Apple here... this is a user to User Technical Support Forum.
    For your issue... Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • HT201304 How do I request a refund for "Refund for In-App Purchases made by a minor"? I received an email on this with a link that takes me into a loop with no request form to fill out as the email states. :(

    How do I request a refund for "Refund for In-App Purchases made by a minor"? I received an email on this with a link that takes me into a loop with no request form to fill out as the email states.

    Did you do this
    How to report/refund an issue with your iTunes Store, App Store, Mac App Store, or iBooks Store purchase
    or maybe
    1 - Use the Express lane and start here:
    https://expresslane.apple.com
    or the general place
    Apple - Support -form iTunes Store - Contact Us
    2 - Call Apple in your country by getting the number from here:
    http://support.apple.com/kb/HE57

  • App Store "Cannot Complete Request" When trying to purchase

    Message pops up saying that App store cannot complete request. Trying for two days now! I downloaded  a different just fine. I need FCPX now!

    Hi i followed (http://blogs.msdn.com/b/sharepoint/archive/2007/02/24/updated-installation-guide-for-the-20-server-admin-application-templates-for-wss-3-0.aspx?PageIndex=6#comments)
    (http://www.microsoft.com/downloads/details.aspx?FamilyId=C1039E13-94DA-4D7D-8CAE-3B96FA5A4045&displaylang=en)
    this install the 
    templates correctly,and i goto activate the feature under "Site Administration->Site Feature" page during activation some feature(Bug Tracking
    Modules,IT Modules)is not activated showing error "Cannot complete this action.Please try again.Troubleshoot issues with Windows SharePoint 
    Services" and some feature is already in exist (eventplanning.wsp,endinglibrary.wsp). after this my sharepoint website Home page also 
    showing this error "Cannot complete this action.Please try again.Troubleshoot issues with Windows SharePoint Services".
    Please help me,How to resolve this?
    Thanks in advance,vel

  • Problems with in-App Purchase "localizedTitle" of SKProduct

    Is anyone experiencing any problem with products localizedTitle using in-App purchase? Til yesterday it worked, now it's always null...I guess why

    I am having the same problem!  And this is on August 10th!
    product.localizedTitle = (null)
    When the alertView asks the user if they want to purchase it always says, "Do you want to purchase Unknown App for $0.99" etc.
    The "productIdentifier" and "priceLocale" have correct values, but NOT the "localizedTitle"..
    I am using the iOS5 SDK, NOT iOS6.

  • HT4009 I can't seem to find a place to request a refund for app purchased from the iTunes store.  Can anyone help?

    I downloaded an app and tried to make an in-app purchase.  When I did so, the app said it could not finish the transaction, but it didn't say why.  However, I got a statement from iTunes and see that I have been charged for the in-app purchase for the service, even though the app itself still says I have not subscribed.  Does anyone know how I get a refund?
    Any help you can provide would be greatly appreciated.
    Thanks.
    Michelle

    Thanks!  I'll try it.  I didn't know you could just contact support.
    Michelle

Maybe you are looking for

  • HT4623 I did the update to my iPhone 4 and I loose my voice memos how can I recover them?

    I did the update to my iPhone 4 and I loose my voice memos how can I recover them?

  • Using radio buttons to populate a text field

    Hi This is my first time creating Adobe Forms and my first time using JavaScript as well. One of the questions on my form asks about Ethnicity and I have about 15 choices for which I created radio buttons. I want the user's choice to populate a textf

  • Pictures in negative

    My daughter has a Mac mine and it works fine. I had a new HP display that I did not need so gave it to her. It worked fine for a few weeks. Now all pictures and images are in negative. I have tried every setting on the HP. Is there something on the M

  • Nothing seems to work, please help!! :(

    Hey guys,  I was hoping if anyone could help me, i am a first time BB user and i set everything up today! For about 1 hour everything was working, untill i got an error message saying it could not connect to the internet!  Things i have tried: Send S

  • Transaction or program to find all existing BPs in CRM

    HI all, We have a scenario in which Business Partner data comes from legacy to XI and then gets posted into CRM. Sometimes all the data is not posted. I want to display all the BPs available in CRM till date and its corresponding data . Is there any