title: When are In-App Purchases activated after app has been approved for sale
body: <p>I just made my first <code>IOS</code> app which has an <code>IAP</code> option and today it has been approved by iTunes Store. After I got the email, I had to wait another 4 hours before the app actually has been added to the App Store.  </p>
  
  <p>After I search for it and download it on my phone I decided to test the <code>IAP</code> option, but it doesn't seem to work. I am using my original Apple ID email and not the one I used for testing.  </p>
  
  <p>My question is, if the app has been added to the store, does the IAP has to work ? Or you have to wait awhile ? Just like waiting for the app to be added to the store after it has been approved.</p>
  
  <p>PS: both the app and <code>IAP</code> has been approved by Apple and the status of my app is <code>Ready For Sale</code>.  </p>
  
  <p>edit:</p>
  
  <p>If I run my app now from Xcode I get the following output from my code:</p>
  
  <pre><code>About to fetch product
  Fetching products
  Got response from Apple
  Black Edition Theme
  Black theme
  0.99
  Sending the payment request to Apple
  Received payment transaction from Apple
  Received payment transaction from Apple
  Restored
  Received payment transaction from Apple
  </code></pre>
  
  <p>It works how it should, but it keeps asking me for my Apple ID password continually and at some point said <code>Cannot connect to App Store</code> even if everything was successful, and after I click Retry I get the <code>Confirm Your In-App Purchase</code> screen but it also says <code>Environment: Sandbox</code></p>
  
  <p>I'm really confused why the sandbox screen is appearing.</p>