Showing: 11 - 20 of 73 Articles

Continue run application in background mode without suspended by OS.

We can solve this by using background task and runloop mechanism. Below piece of code can save your day for problem like run app in background continue.   Initialise var UIBackgroundTaskIdentifier        var bgTask:UIBackgroundTaskIdentifier!         bgTask = application.beginBackgroundTaskWithName(“MyTask”, expirationHandler: {() -> Void …

Download & Store files in documents directory iOS phone-gap application

Hello, Here is the code for download and store files in document directory ios phone-gap app. var fileTransfer = new FileTransfer(); fileTransfer.download( uri, filePath, function(entry) { alert(“download complete: ” + entry.toURL()); } }, function(error) { alert(“download error source ” + error.source); alert(“download error target ” …

DFP Banner & Interstitial Ads in iOS

//DFPBannerView //ViewController.h 1. @import GoogleMobileAds 2. @property (nonatomic, weak) IBOutlet DFPBannerView *bannerView; 3. Design UIView which custom class is DFPBannerView //ViewController.m – (void)viewDidLoad { [super viewDidLoad]; NSLog(@”Google Mobile Ads SDK version: %@”, [DFPRequest sdkVersion]); self.bannerView.adUnitID = @”/6499/example/banner”; //To get your own adUnitID refer reference links …