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 7182207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:43:15+00:00 2026-05-28T17:43:15+00:00

When in airplane mode or any other state where network access is not available,

  • 0

When in airplane mode or any other state where network access is not available, will a call to NSFileManager’s URLForUbiquityContainerIdentifier: return nil?

A follow up question to this is: if this call to URLForUbiquityContainerIdentifier: DOES not return nil but rather returns a valid URL when network access is not available is this a way to access cloud based documents offline?

The apple docs state that this will return nil if iCloud is not configured or not enabled. It does not mention what will happen if network access is not available.

I would test this myself but from what I understand I would have to test this on an actual device and testing on a device is not possible for me at this time. Thank you!

  • 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-05-28T17:43:17+00:00Added an answer on May 28, 2026 at 5:43 pm

    The UbiquityContainer is a local storage container that contains the documents you requested from iCloud. This container is available when when the network is not. By using the following example

    NSURL *ubiq = [[NSFileManager defaultManager] 
      URLForUbiquityContainerIdentifier:nil];
    if (ubiq) {
        NSLog(@"iCloud access at %@", ubiq);
        // TODO: Load document... 
    } else {
        NSLog(@"No iCloud access");
    }
    

    You will be able to access the files and ubiquity container when the phone is even in airplane mode. When the network connections restore the icloud daemon will automatically sync the files even in the background.

    Here is a great article on iCloud setup.
    http://www.raywenderlich.com/6015/beginning-icloud-in-ios-5-tutorial-part-1

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

HI , i want to check wether Airplane mode is on or not ..
Is there any way to simulate airplane mode in the iPhone Simulator?
I want to set AIRPLANE MODE and AUTOLOCK settings from my app. Initially I
uncaught handler:thread main exiting due to uncaught exception android.app.SuperNotCalledException:Activity did not call through to
Hey guys, is it possible to trigger the airplane-mode or deactivate all incoming calls
Okay so now I can turn on the airplane mode (thanks to the help
I need to transfer files from an iPad in Airplane Mode (such that neither
I would like to turn off the airplane mode if num>50, I implemented this
I need clarification. My webapp is cached in safari. With airplane mode on (wifi
I need a way to detect if the iPhone is in Airplane Mode or

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.