Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. IOS BackgroundFetch in Qt
Qt 6.11 is out! See what's new in the release blog

IOS BackgroundFetch in Qt

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dcole
    wrote on last edited by
    #1

    Hello,

    I am interested in making an iOS(7.0) application that can perform data fetches from the internet while in the background. How do I implement this in Qt?

    In Xcode, I would normally go to the capabilites tab for the project, select background modes -> background fetch

    Then I would go to my AppDelegate.m and add something like
    @- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
    [application setMinimumBackgroundFetchInterval:UIApplicationBackgroundFetchIntervalMinimum];

    return YES;
    

    }@

    And then add a delegate method

    @-(void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler{
    // We will add content here soon.
    }@

    So is it possible to implement this type of program with Qt5 and deploy to ios? I also looked at my projects simple xcodeproject that is generated when I build the iOS version. I can still go to the project and set the background mode, but I am not sure if I can just cram in an implementation somewhere of the appdelegate in that generated project. Any help is appreciated.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved