Skip to content

Prevent your iOS / Cordova app to be rejected just for using Google Analytics SDK for iOS

License

Notifications You must be signed in to change notification settings

gbarredev/ICPDoNotBackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ICPDoNotBackup

The only goal of ICPDoNotBackup plugin is to avoid your iOS / Cordova app to be rejected by App Store Validation Team because of Google Analytics SDK for iOS.

From the iOS Guidelines, any file in the '/Library' directory is automatically stored in iCloud, except if the 'do not backup' attribute is set. https://developer.apple.com/icloud/documentation/data-storage/index.html

Google Analytics SDK for iOS generates some files at the root of '/Library'. These files can be more than 6Mo and they have not the 'do not backup' attribute. So your app will be rejected because :

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

This issue is confirmed : Issue 556: iOS SDK: Could results in rejection in review due to 2.23(iCloud Backup)

As I cannot wait for Google Analytics to be updated, I wrote this plugin for Cordova apps to set the 'do not backup' attribute on Google Analytics files as recommended in the previous link.

#INSTALLATION

This plugin has been tested on cordova-ios 4.1.1

cordova plugin add https://github.com/guillaumebarre/ICPDoNotBackup

#USAGE

At launch, after the 'deviceready' event, just use the unique method of this plugin :

window.cordova.plugins.ICPDoNotBackup.setDoNotBackup();

About

Prevent your iOS / Cordova app to be rejected just for using Google Analytics SDK for iOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published