Why isn't my Apps Documents folder visible?

for my app i want my users to store xml files locally to the apps document folder. but it doesn’t show up on install and i don’t want my users to have to set it manually in de general settings.

this is how the document storage setting should be on install to make the folder visible to the user.

I’ve set both UIFileSharingEnabled and LSSupportsOpeningDocumentsInPlace to true but the folder isn’t visible. I’ve followed these exact steps described here.

i can’t seem to find an answer anywhere and i’m about to just add splash screens to instruct the user to go the apps settings and change it themselves.

I have found my own answer! on launch make sure to store a file in your users documents folder. after you’ve done that the folder will be visible to the user.

this is how i create a file if there is none the first time a user installs my application;

CreateStarterXml::CreateStarterXml()
{
    starterXml = juce::parseXML  (BinaryData::_smartjeKruisjes_xml);   
}

CreateStarterXml::~CreateStarterXml()
{
}

bool CreateStarterXml::save()
{
    File f = getXmlFile();
    if (! f.exists() )
    {
        firstTime = true;
        f.create();
        if (starterXml->writeTo(f))
            return true;
        else
        {
            DBG("SAVE ERROR!");
            return false;
        }
    }
    else
        firstTime = false;
}

File CreateStarterXml::getXmlFile()
{
    //get the file config.xml from the users documents folder
    File appDir = File::getSpecialLocation(File::userDocumentsDirectory);
    File xmlFile = appDir.getChildFile("SmartjeStarter.xml");
    return xmlFile;
}