How to retain ViewController references while doing in-app purchase

I have a modally presented ViewController.  In it I download data from a server.  In
-(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data where my data arrives I have a UIProgressView bar which updates while downloading is going on.  This works fine when I do not go through the SKPayment process before starting the download.  The problem is that if before I start downloading I go through the SKPayment process to do an in-app purchase, and then come back to the ViewController to download the purchased data, the ProgressView or any messages I try to put out don't work.  Also dismissing the modal view does not work correctly.  I assume that this because during the SKPayment process Apple takes over so my app resigns (applicationWillResignActive) and when it comes back the references are lost.  All the SKPayment stuff works fine and downloading also works.  The only problem is dispaying progress and messages after going through the in-app rigamarole. 
Not sure how to put my question. Maybe: how can I retain the reference in the ViewController?  I am using XCode 4.2 and compile for ios 5.0.  I am using ARC.  Everything is run on the main thread.  I tried [self view] in the upDateFromInternet method and the view does load (reload) but still does not show ProgressBar...

No, that's what I said:
an internal table declared and filled during a start routine will be available only ONLY for the current executing datapackage; other datapackages cannot read an itab declared and filled during execution.
Is this what you require: a table which would be available for all datapackages. if you can update this table from any data package, how do you manage the case when your data loaded in parallel; any datapack could update this data simultaneously...
as of noew I can think of three options:
- use a database table (you could even use your PSA table but I don't recommend updating the PSA table during loading
- try the abap clause STATIC in your declaration; you'll have to ensure that each start routine will check if this table is already declared; if yes, avoid declaring it again, (otherwise: dump)
- store your table into MEMORY using ABAP stmt EXPORT
hope this helps...
Olivier.

Similar Messages

  • HT4009 iTunes Gift Card problem while doing in App purchase

    I have itunes gift card balance for my iphone 5. when try to buy in app content such as Gems (Clash of clan) and new episode of wolking dead the game. it said error and need to contact itunes store. what wrong with my account ? Buying new app from app Store just fine.Anyone please help me. thanks.

    No, it's not true. Most in-app purchases can be made with a credit balance from a gift card, though not all (automatically renewing subscriptions, for instance, probably require a credit card). I regularly make in-app purchases with a credit balance.
    Regards.

  • HT4009 Does anyone know how to get a refund for an iPad app purchase?

    Does anyone know how to get a refund for an iPad app purchase?

    FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
    For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
    Phone: 800-275-2273 How to reach a live person: Press 0 four times
    Hours of Operation: Mon-Fri: 9am-5pm ET
    Email: [email protected]
    How to report an issue with Your iTunes Store purchase
    http://support.apple.com/kb/HT1933
    How to Get a Refund from the App Store
    http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
    Canceling a Digital Subscription
    http://gadgetwise.blogs.nytimes.com/2011/10/14/qa-canceling-a-digital-subscripti on/
     Cheers, Tom

  • How to access an old account to update apps purchased with that account?

    How to access an old account to update apps purchased with that account?
    I cannot update purchased apps in iphone/itunes because I cannot enter the password for the old account. It does not exist anymore anyway.

    Restore from your backup of old computer.
    You can redownload past purchases.
    -> iTunes: Download past purchases
    FYI: Lab top is a roof over a science room.
    A laptop is a computer that sets on top of your lap...

  • My hotmail account was hacked, so the mail that I use to sign in in itunes also, it's the same. But if I create a new account how can I transfer the money and the apps purchased to the new account ?

    My hotmail account was hacked, so the mail that I use to sign in in itunes also, it's the same. But if I create a new account how can I transfer the money and the apps purchased to the new account ?
    I really need help ! I had around 30 $ in my account !

    Don't create a new iTunes account.
    Just update everything with new info/change password/ security questions.
    -> https://appleid.apple.com/

  • HT201304 How do I set password for all in app purchases?

    How do I set password for all in app purchases? xx

    In-App purchases cannot be made without entering your iTunes store account password.

  • How do I require a password between every app purchase on my iPad?

    How do I require a password between every app purchase?  I'm trying to avoid having my son make purchases without my consent.

    See if you have something in your settings that shows Profile. Settings>General>Profiles.
    Important: Restrictions can also be enabled or enforced using a profile (typically installed when using the device for business or education purposes). You can check for installed profiles in Settings > General > Profiles. For additional information, contact the administrator or the person who installed the profile.

  • How do you stop auto renewal of in app purchases?

    how do you stop auto renewal of in app purchases?

    If you're referring to subscriptions:
    Manage your auto-renewing subscriptions - Apple Support

  • HT4009 How do I get a refund on an app purchase

    How do I get a refund on an app purchase???

    Contact the iTunes Store folks through Express Lane, they should be able to help you out.

  • How Can I know, Material status does not allow purchase??

    Hi Experts,
    Pls. clarify me that, How Can I know/track the follwoing things? Which tables I hv to see?
    I hv a list of materials, some r good , some r bad. So, I hv to trace out the bad materials depending on the criteria, So, pls. let me know Which tbls I hv to look?
    1) Material does not exist in plant 1500
    2) Material status does not allow purchase
    3) Decimal places on the quantity may not be supported by unit of measure
    thanq

    thanq
    MATNR status:
    In our system the values for MARC-BESKZ are
    E     In-house production
    F     External procurement
         No procurement
    X     Both procurement types
    My requirement: I need to trace the MATNR from matnr_list for Material status does not allow purchase
    So, am thinking to write IF condn as,
    IF my_itab-matnr <> 'F' or my_itab-matnr <> 'X'.
    --> this matnr is Material status does not allow purchase
    ENDIF.
    Am I correct?
    3) Decimal places on the quantity may not be supported by unit of measure
    This can be retrieved from table T006
    I hv seen but, DO NOT UNDERSTAMD THIS TABLE entries, bcoz, there r values of 0 & 1 for the DECIMAL PLACES filed, partcularly for EA unit - devciaml places value is 0?
    pls. clarify,
    thanq

  • What does in app purchase mean

    My daughter has just spent £70 on a game which has the type as 'in app purchase'. What does this mean and how can I stop her from doing it again

    It means something purchased from within the app itself. With games it's often new levels, or additions such as weapons or other artifacts to be used in playing the game.
    http://support.apple.com/kb/HT4009
    Turn off In-App Purchases in the Restrictions (in the General settings) on her iPad/iPhone/iPod touch.
    Regards.

  • HT4009 how to claim a refund for an in app purchase

    how does one claim a refund for a wrongly made in app purchase?

    To Contact iTunes Support and request assistance Click  Here

  • How to get help with refund for in app purchase

    I downloaded the free app "Bakery Story" without realizing it was an app that allowed the user (in this case, my child) to run up a bill very quickly with in-app purchases (using my real money instead of the play money within the game). As soon as I received the statement from Apple about these unexpected purchases, I enabled the parental controls that block purchases from within apps like this. I am trying to use Apple website to find the rightbplace to request a refund on those purchases, but I only get so far with the express lane before I get a "server not responding" message. Any ideas for how to get help? (clicking the Report a Problem" link in the invoice email doesn't work either (and my WI fi Internet connection seems fine).

    These Links may be Helpful
    Mac Apps Store Customer Service
    http://www.apple.com/support/mac/app-store/contact.html?form=account
    iTunes Customer Service Contact
    http://www.apple.com/support/itunes/contact.html

  • HT4009 How do I get a refund on in app purchases my two year old made?

    How do i get a refund on an in-app purchase my two year old made? HELP!

    All purchases are considered final, but you can try the 'report a problem' link to contact iTunes Support and see if they will refund or credit you : 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
    To try and stop it happening again you can use Settings > General > Restrictions on your phone to turn off in-app purchases and to require your password to be entered for every download (the default is a 15 minute period during which it doesn't need re-entering)

  • 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

Maybe you are looking for

  • Wiki will not start up properly, causing python to go nuts trying to restart it every 9 seconds.

    Im pretty sure it has something to do with the wiki trying to start up, it only happens when the web service is running. python seems to be running something and the cpu spikes about ever 8 seconds. It spits up tons of errors in the system.log all th

  • Content Conversion when each field is in a new line

    Hi, I have file format denoted with .SIF or .CIF. This file is organised like - AB=asdas BC=qweqwe CD=lop;lk;lk YZ=sdfsdf In each line the data after the = is actually the value of the field. Few set of these fields could repeat. And a new record wou

  • Windows Media Player For IMAC

    so as not to bore anyone with why I had installed windows media player, I now do not need it, I installed real player instead....im digressing....anyways...i now want to delete wmp from my hard drive. i have dragged it into my trash but it will not d

  • New BI Publisher Desktop (incl. Template Builder for Word) patch available

    This is a patch for Template Builder 10.1.3.4 and 10.1.3.4.1 The patch address the following issues: 8463992 - INCORRECT IMPLEMENTATION OF XLIFF SPECIFICATION 8392756 - PROBLEM WITH CROSS-TAB(PIVOT TABLE) IN TEMPLATE BUILDER 9283891 - TB DIALOG DOES

  • Public Database Link

    Hi All, I am using Oracle 10g. I created one Public database link as : i created this database link by connecting ora1. CREATE PUBLIC DATABASE LINK "ora2_1" CONNECT TO CURRENT_USER USING 'ora2'; When i run the select query i am getting error. as: i r