Ahmad Naser Turnkey Ecosystem Ahmad Naser
May 5, 2019

Fix Sotryboard UI Kit iOS Save

Published in the Ahmad Naser ecosystem. Estimated reading time: 1 minute.

Replace FileManager.cs getPlatformPath () method with the following script:

		//get the current platform path
		public static string getPlatformPath ()
		{
				string paltformPath = null;

				if (PlatformChecker.IsAndroid ()) {
						paltformPath = Application.persistentDataPath + "/";
				} else if (PlatformChecker.IsIOS ()) {

            string dir = Application.persistentDataPath + "/Documents/";
            if (!Directory.Exists(dir))
            {
                Directory.CreateDirectory(dir);
            }

            paltformPath = dir;
				} else {
						paltformPath = Application.dataPath + "/";
				}
				return paltformPath;
		}

Leave a Reply

Your email address will not be published. Required fields are marked *