Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8895281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:44:16+00:00 2026-06-14T23:44:16+00:00

In reference to https://stackoverflow.com/a/10319761/1680408 . In my app a user can upload audio video

  • 0

In reference to https://stackoverflow.com/a/10319761/1680408. In my app a user can upload audio video and images to a server. If the application goes into the background, I need that task to remain until it finishes. I implemented the solution that the post suggested and it works! However, it generates funny warnings.

with the below one, I get: “Incompatible integer to pointer conversion assigning to ‘UIBackgroundTaskIdentifier *'(aka ‘unsigned int *’) from ‘UIBackgroundTaskIdentifier'(aka ‘unsigned int’)

- (void)beingBackgroundUpdateTask
{
self.backgroundUpload = [[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler:^{
    [self endBackgroundUpdateTask];
}];

//
}

with this next one I get a fix it suggestion: “Incompatible pointer to integer conversion sending ‘UIBackgroundTaskIdentifier *'(aka ‘unsigned int *’) to parameter type ‘UIBackgroundTaskIdentifier’ (aka ‘unsigned int’); deference with *

- (void)endBackgroundUpdateTask
{
self.backgroundUpload = UIBackgroundTaskInvalid;
[[UIApplication sharedApplication] endBackgroundTask:self.backgroundUpload];
}

which when I use the fix it suggestion the code doesnt work. To be hoenst, I’m not too fussed because it works. However I am worried that Apple would reject my app because of this. So kinda just want to be better safe than sorry. Unless someone out there knows for a fact that this type of issue wouldn’t be rejected. So weird! Any other time I get this type of warning my app crashes! I did some searching for this but suggestions didn’t really help. Anyone know if there’s a quick fix or just a fix in general fix for this?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T23:44:17+00:00Added an answer on June 14, 2026 at 11:44 pm

    How did you declare variable backgroundUpload?

    UIBackgroundTaskIdentifier *backgroundUpload;
    

    This will give this warning. Remove the * from the above line.

    UIBackgroundTaskIdentifier backgroundUpload;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I first had a problem with adding a Reference for Bing Maps (http://stackoverflow.com/questions/13239597/why-can-i-not-reference-bing-maps-in-my-app); but
I'm trying to get information regarding apprequests sent by my application (see https://developers.facebook.com/docs/reference/api/user/#apprequests ),
I've referred to this very good reference: https://stackoverflow.com/questions/1282830/uiimagepickercontroller-uiimage-memory-and-more but I'm having some very serious
This question is related to this one: https://stackoverflow.com/questions/7906356/how-to-solve-a-a-reference-tracked-object-changed-reference-during-deserializat Since the above post has been
As a reference, the most similar question already asked is: https://stackoverflow.com/questions/8667849/making-xforms-enforce-the-constraint-and-type-model-item-properties-only-when-fi The difference is
In Xcode build ref: https://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html#//apple_ref/doc/uid/TP40003931-CH3-SW45 It says: ACTION Description: Identifier. Identifies the type of
I need someone help. When I open https://developers.facebook.com/docs/reference/api/ and clicked https://graph.facebook.com/me/likes?access_token=blablabla , I got
It seems that, recent released Google Drive SDK supports directory listing. https://developers.google.com/drive/v2/reference/files/list I try
I asked the same question yesterday and the answer was not applicable. https://stackoverflow.com/questions/6194578/breaking-up-class-functions-into-multiple-cpp-files If
I've seen several other posts similar to this (namely https://stackoverflow.com/questions/5237/solutions-for-working-with-multiple-branches-in-asp-net ) but there are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.