I have already looked at these questions which did not work for me:
I am currently having memory leaks which causes my app to begin at 30 megabytes, instead of the usual 10, and increase in 10 megabytes every so often. I have confirmed that the cause of the memory leaks are due to Admob, but I can only assume that the other memory leaks are due to another ad loading. I have looked at this google discussion which suggests that this is due to SKPaymentQueue
in the StoreKit
framework. You can see this also happens to me:
What I find even more odd, is that when I delete the StoreKit
framework from my project, nothing changes.
This is how I implemented Admob for my app:
- Downloaded version 7.8.1 of the SDK
- Added the GoogleMobileAds, StoreKit, AudioToolbox, AdSupport, CoreGraphics, CoreTelephony, EventKit, EventKitUI, MessageUI, SystemConfiguration, and AVFoundation frameworks.
- Created a GADBannerView in Storyboard
- Linked to h file which imported GoogleMobileAds
m file -
viewDidLoad
:self.bannerView.adUnitID = @"ca-app-pub-3940256099942544/2934735716"; self.bannerView.rootViewController = self; GADRequest *request = [GADRequest request]; request.testDevices = @[kGADSimulatorID]; [self.bannerView loadRequest:request];
My question is whether there is something wrong with my implementation, or whether others are experiencing this problem due to StoreKit
and if there's a work around.