2016년 2월 29일 월요일

Cordova iOS BackupWebStorage


When i publish to apple,

I was rejected by this reason

Apple의 메시지
  • 2.23 - Apps must follow the iOS Data Storage Guidelines or they will be rejected
2.23 Details

On launch and content download, your app stores 11.39MB on the user's iCloud, which does not comply with the iOS Data Storage Guidelines.

Next Steps

Please verify that only the content that the user creates using your app, e.g., documents, new files, edits, etc. is backed up by iCloud as required by the iOS Data Storage Guidelines. Also, check that any temporary files used by your app are only stored in the /tmp directory; please remember to remove or delete the files stored in this location when it is determined they are no longer needed.

Data that can be recreated but must persist for proper functioning of your app - or because users expect it to be available for offline use - should be marked with the "do not back up" attribute. For NSURL objects, add the NSURLIsExcludedFromBackupKey attribute to prevent the corresponding file from being backed up. For CFURLRef objects, use the corresponding kCRUFLIsExcludedFromBackupKey attribute.

Resources

To check how much data your app is storing:

    - Install and launch your app
    - Go to Settings > iCloud > Storage > Manage Storage
    - Select your device
    - If necessary, tap "Show all apps"
    - Check your app's storage

For additional information on preventing files from being backed up to iCloud and iTunes, see Technical Q&A 1719: How do I prevent files from being backed up to iCloud and iTunes.

If you have difficulty reproducing a reported issue, please try testing the workflow described in Technical Q&A QA1764: How to reproduce bugs reported against App Store submissions.

If you have code-level questions after utilizing the above resources, you may wish to consult with Apple Developer Technical Support. When the DTS engineer follows up with you, please be ready to provide:
- complete details of your rejection issue(s)
- screenshots
- steps to reproduce the issue(s)
symbolicated crash logs - if your issue results in a crash log

In this message,

I check the config.xml file on project folder.
<preference name="BackupWebStorage" value="local" />

I guess this config preference option not working iCloud disable.

Change the option to.
<preference name="BackupWebStorage" value="none" />

In this time, waiting for review.
It work OR reject.


=========================================================
In my case,
I use cordova-plugin-file-transfer download path that "cdvfile://localhost/persistent/"
So, i change path to cordova.file.dataDirectory.

And i use imgcache.js lib.
https://github.com/chrisben/imgcache.js

in this lib,
iOS iCloud backup problem can fix
https://github.com/chrisben/imgcache.js/issues/73#issuecomment-54437775

This means that change the ImgCache.options.localCacheFolder
to cordova.file.dataDirectory

But i didn't this solution.
because i use android also.

Please no reject! Apple!

댓글 없음:

댓글 쓰기

JIRA Plugin - ScriptRunner 소개 #2

관련 글 소개 #1:  https://pineoc.blogspot.com/2019/03/scriptrunner-1.html ScriptRunner 소개 #2 지난 글에서는 Behaviours를 보았고 다음 내용인 콘솔, 리스너 등을 ...