SKDownload not working in sandbox - ipad

I'm trying to download content for an IAP, but it fails after a few calls to "paymentQueue:updatedDownloads:" method. The first two calls to this method show that the download is in the SKDownloadStateActive state with a progress of 0%. The third call has the download in the active state again, but this time with the download at 75%. The fourth call shows the download is in the SKDownloadStateFailed with an error of "Cannot connect to iTunes Store".
I can't seem to figure out what is causing this. I'm not calling "finishTransaction:" at any point in between. Only from the "failed" and "finished" states. Has anyone had a similar problem? Any help would be greatly appreciated.

I tried this on my iPad and it worked. I guess you can't test IAP hosted content from within the simulator.

Related

Offer codes not working in live appstore app when entering with presentCodeRedemptionSheet()

When calling the SKPaymentQueue.default().presentCodeRedemptionSheet() method on live appstore app it will present redemption sheet and after entering the promo code in it is displaying 'Cannot connect' screen as seen in attached picturethis is after entering the code instead of showing me code benefits associated with subscription plan. What could be the reason for this and what solutions can be found to solve the problem? please some one help it is really frustrating.
https://i.ibb.co/BChSQgq/IMG-52-EDEB1596-F8-1.jpg

A callback or backgroud task to check if an app was downloaded?

I'm trying to build an app in which I want to check if some other app was installed on the phone not at a particular time but a background task that continuously checks if the app was downloaded ever after the install of my app. Or callback thats called every time any app is installed? something like applicationDidFinishInstalling.
I have my doubts that there's gonna be anything like that but if anybody knows? or a hack to achieve this?
Any help will be greatly appreciated. TIA
The answer to your question is no, you can’t achieve that(thankfully!). Read up upon sandbox and you will find out what you can and can’t access.

Problems activating Facebook Ads in iOS App

I am trying to integrate Facebook Ads in my iOS App.
I have the SDK installed and I also already receive test-ads. So everything seems to work fine.
BUT...
On the Facebook page inside the Monetization Manager there is a 4 step tutorial on what I need to do.
was Choosing the ad format -> Banner -> Done
Integrating the SDK (I'd say it's done cause I see Test-Ads inside my app) but here's the problem... Cause there is no Checkmark there.
Is the payment info. That's done.
Would be the Review that I'd like to do, but that seems to be deactivated...
So... It also says there, that I need to be logged in to facebook on my phone with an associated Account. I am!
I don't know what else I'd need to do in order for Facebook to recognize that I already successfully displayed a Test-Ad and I just can't find any contact phone number to ask somebody.
Any hints are very much appreciated.
Btw. I already tried yesterday evening (in case the activation process simply takes longer...)
I finally found the Problem after trying every single Setting on the Facebook page...
The problem was that I added my device as Test-Device.
So after removing FBAdSettings.addTestDevice(FBAdSettings.testDeviceHash()) it was working.
Did cost my a lot of time and nerves :) But now everything works as expected!

Downloading content on app's first launch

Working on an app which is relying heavily to download content (images and sound files) from the server while the app is launched for the first time. It may take awhile depending on the connection speed. Just wondering if that delay may cause my app to be rejected by AppStore review team? Though, be assured that I will display proper user feedback view to show progress indicator while the content is being downloaded. Kindly, share your valuable insights. Thanks
What you should do is show a first view in which you show the status of the download. Once the download is complete yo move to the firs controller of your app. You could save a variable to know that the initial download has already been done, and int future openings not go
through the downloading view.

Google Drive SDK -DrEdit iOS example

I've loaded the example app, configured the IDs, and get an app that starts nicely and allows me to logon. Once the logon is complete I get the following message & the app crashes.
Any ideas on what the problem is would be appreciated.
This message turned out not to crash the program after careful review of the template code. Message still displays, but then closes to display the tableView.

Resources