Does UIFileSharingEnabled need to be set to true for Quick Report app?

1173
3
Jump to solution
06-22-2017 08:50 AM
KE
by
Occasional Contributor

My app was turned down in the iTunes store because UIFileSharingEnabled is set to true.

I see you can turn it off here: 

But what is the 'External Storage' setting for? Is it necessary to save draft reports in the Quick Report app?

Here is the full error message from iTunes connect:

Your app has the UIFileSharingEnabled key set to true in the Info.plist, but the Documents folder includes files and folders not intended for file sharing. If your app does not require the file sharing feature, please set the UIFileSharingEnabled key in the Info.plist to false.
0 Kudos
1 Solution

Accepted Solutions
NakulManocha
Esri Regular Contributor

Quick Report uses local storage to save the feature service info and the database to populate the saved drafts. Hence we have this capability to enable External storage within App Settings. This is must if you are deploying apps which uses local storage like Quick report on Android devices or for Play store submissions. However, iOS works little different from Android in this aspect and is not needed because we are not sharing any files with other apps. 

Hence you can go ahead and turn off this capability when building for iOS but for Android make sure to turn it back on. We will see what we can do to fix this in our future release.

-Nakul

View solution in original post

3 Replies
NakulManocha
Esri Regular Contributor

Quick Report uses local storage to save the feature service info and the database to populate the saved drafts. Hence we have this capability to enable External storage within App Settings. This is must if you are deploying apps which uses local storage like Quick report on Android devices or for Play store submissions. However, iOS works little different from Android in this aspect and is not needed because we are not sharing any files with other apps. 

Hence you can go ahead and turn off this capability when building for iOS but for Android make sure to turn it back on. We will see what we can do to fix this in our future release.

-Nakul

View solution in original post

KE
by
Occasional Contributor

Thank you for the explanation! 

0 Kudos
SathyaPrasad
Esri Contributor

We have fixed this issue in the latest release of AppStudio v 2.0

A new parameter has been added in appinfo.json to differentiate between access to local storage vs file sharing (between apps or using itunes). Though in Android world it does not make a difference in the iOS world these two things are very different. In this release (v 2.0) this has to be specified in the appinfo.json "capabilities" section manually by editing the file, in the next release we will add a user interface to this property. 

What does this mean?

  • "storage" : true | false
    • Tells the underlying platform whether the app intends to use the file system to store files like json or sqllite etc as part of the app. This is a very commonly used flag since many mobile apps use local storage, for example, Quick Report and Map tour templates. 
  • "fileSharing" : false | true 
    • Tells the underlying platform whether the app intends to allow other apps or software like iTunes to see and access the locally stored files in the app. Note that this property need not be true for most apps unless there is a good use case. For example: Survey123 has this option turned on since all the surveys are created and stored locally and in case there are network issues or any other failure you can connect your device to the computer and use iTunes to extract the database so that there is no data loss.

Note: If you are using the latest version of Quick Report template, this has already been added for you so no need to worry but make sure you using the latest version or follow above steps to add this to your existing Quick Report template based app.

cc: Nakul ManochaTina Jinasparuh_kamb@mail.bg

0 Kudos