Sharing data between apps on iOS












1















I have several small apps that share common data (images, sounds files, etc). This data bloats the size of each app. When the user installs 2 or more of these apps that will bloat the device space with duplicate data. Is there a way that I can share this data between my apps so that each app doesn't duplicate this data within its bundle?










share|improve this question



























    1















    I have several small apps that share common data (images, sounds files, etc). This data bloats the size of each app. When the user installs 2 or more of these apps that will bloat the device space with duplicate data. Is there a way that I can share this data between my apps so that each app doesn't duplicate this data within its bundle?










    share|improve this question

























      1












      1








      1


      0






      I have several small apps that share common data (images, sounds files, etc). This data bloats the size of each app. When the user installs 2 or more of these apps that will bloat the device space with duplicate data. Is there a way that I can share this data between my apps so that each app doesn't duplicate this data within its bundle?










      share|improve this question














      I have several small apps that share common data (images, sounds files, etc). This data bloats the size of each app. When the user installs 2 or more of these apps that will bloat the device space with duplicate data. Is there a way that I can share this data between my apps so that each app doesn't duplicate this data within its bundle?







      ios bundle






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 6 '17 at 19:58









      andrewzandrewz

      1,75932645




      1,75932645
























          2 Answers
          2






          active

          oldest

          votes


















          3














          You can have a common file space between apps by using app groups. An example of how to use them can be found here: Sharing data in between apps in IOS



          You can use this as part of a solve for not duplicating the data in every bundle. One way might be to have the data hosted on a server somewhere and when the app is installed you can check the App Group for the common data, if it is not there, you can download it and store it there. Then the next app that is installed will have the data already available. This should help avoid having to include it in every small app.



          You can set up the code to check the shared location and download the data in a framework and share it between all your apps making it a bit easier to maintain. If you do not already have a content management system then you could google for a few that have iOS support. There are many out there. You would then host the shared data there. This would give you the ability to update the data for each app while they are in the field which could be a time saver. If these apps are very small though, this may be overkill.






          share|improve this answer


























          • Do you think I can avoid having my own server by storing this data as on-demand-resources and integrate that into the app group solution you described? developer.apple.com/library/content/documentation/IDEs/…

            – andrewz
            Nov 6 '17 at 20:54











          • Yea I think that would work well for your use case. That should make it pretty easy for you to set up then I would think.

            – Allen R
            Nov 6 '17 at 22:18



















          0














          No, this is not currently possible. Ideally, this kind of resource-sharing would require creating a common framework bundle that would have to
          be submitted separately to the App Store as a third-party framework, so that even if only one of your apps is present on the
          device, it would be able to load the appropriate resources and function properly.



          Apple currently only allows third-party frameworks embedded within the app bundle.
          Even if two of your apps use the same exact version of your framework, they have to embed it separately.






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47144762%2fsharing-data-between-apps-on-ios%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            3














            You can have a common file space between apps by using app groups. An example of how to use them can be found here: Sharing data in between apps in IOS



            You can use this as part of a solve for not duplicating the data in every bundle. One way might be to have the data hosted on a server somewhere and when the app is installed you can check the App Group for the common data, if it is not there, you can download it and store it there. Then the next app that is installed will have the data already available. This should help avoid having to include it in every small app.



            You can set up the code to check the shared location and download the data in a framework and share it between all your apps making it a bit easier to maintain. If you do not already have a content management system then you could google for a few that have iOS support. There are many out there. You would then host the shared data there. This would give you the ability to update the data for each app while they are in the field which could be a time saver. If these apps are very small though, this may be overkill.






            share|improve this answer


























            • Do you think I can avoid having my own server by storing this data as on-demand-resources and integrate that into the app group solution you described? developer.apple.com/library/content/documentation/IDEs/…

              – andrewz
              Nov 6 '17 at 20:54











            • Yea I think that would work well for your use case. That should make it pretty easy for you to set up then I would think.

              – Allen R
              Nov 6 '17 at 22:18
















            3














            You can have a common file space between apps by using app groups. An example of how to use them can be found here: Sharing data in between apps in IOS



            You can use this as part of a solve for not duplicating the data in every bundle. One way might be to have the data hosted on a server somewhere and when the app is installed you can check the App Group for the common data, if it is not there, you can download it and store it there. Then the next app that is installed will have the data already available. This should help avoid having to include it in every small app.



            You can set up the code to check the shared location and download the data in a framework and share it between all your apps making it a bit easier to maintain. If you do not already have a content management system then you could google for a few that have iOS support. There are many out there. You would then host the shared data there. This would give you the ability to update the data for each app while they are in the field which could be a time saver. If these apps are very small though, this may be overkill.






            share|improve this answer


























            • Do you think I can avoid having my own server by storing this data as on-demand-resources and integrate that into the app group solution you described? developer.apple.com/library/content/documentation/IDEs/…

              – andrewz
              Nov 6 '17 at 20:54











            • Yea I think that would work well for your use case. That should make it pretty easy for you to set up then I would think.

              – Allen R
              Nov 6 '17 at 22:18














            3












            3








            3







            You can have a common file space between apps by using app groups. An example of how to use them can be found here: Sharing data in between apps in IOS



            You can use this as part of a solve for not duplicating the data in every bundle. One way might be to have the data hosted on a server somewhere and when the app is installed you can check the App Group for the common data, if it is not there, you can download it and store it there. Then the next app that is installed will have the data already available. This should help avoid having to include it in every small app.



            You can set up the code to check the shared location and download the data in a framework and share it between all your apps making it a bit easier to maintain. If you do not already have a content management system then you could google for a few that have iOS support. There are many out there. You would then host the shared data there. This would give you the ability to update the data for each app while they are in the field which could be a time saver. If these apps are very small though, this may be overkill.






            share|improve this answer















            You can have a common file space between apps by using app groups. An example of how to use them can be found here: Sharing data in between apps in IOS



            You can use this as part of a solve for not duplicating the data in every bundle. One way might be to have the data hosted on a server somewhere and when the app is installed you can check the App Group for the common data, if it is not there, you can download it and store it there. Then the next app that is installed will have the data already available. This should help avoid having to include it in every small app.



            You can set up the code to check the shared location and download the data in a framework and share it between all your apps making it a bit easier to maintain. If you do not already have a content management system then you could google for a few that have iOS support. There are many out there. You would then host the shared data there. This would give you the ability to update the data for each app while they are in the field which could be a time saver. If these apps are very small though, this may be overkill.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 20 '18 at 3:30

























            answered Nov 6 '17 at 20:31









            Allen RAllen R

            866517




            866517













            • Do you think I can avoid having my own server by storing this data as on-demand-resources and integrate that into the app group solution you described? developer.apple.com/library/content/documentation/IDEs/…

              – andrewz
              Nov 6 '17 at 20:54











            • Yea I think that would work well for your use case. That should make it pretty easy for you to set up then I would think.

              – Allen R
              Nov 6 '17 at 22:18



















            • Do you think I can avoid having my own server by storing this data as on-demand-resources and integrate that into the app group solution you described? developer.apple.com/library/content/documentation/IDEs/…

              – andrewz
              Nov 6 '17 at 20:54











            • Yea I think that would work well for your use case. That should make it pretty easy for you to set up then I would think.

              – Allen R
              Nov 6 '17 at 22:18

















            Do you think I can avoid having my own server by storing this data as on-demand-resources and integrate that into the app group solution you described? developer.apple.com/library/content/documentation/IDEs/…

            – andrewz
            Nov 6 '17 at 20:54





            Do you think I can avoid having my own server by storing this data as on-demand-resources and integrate that into the app group solution you described? developer.apple.com/library/content/documentation/IDEs/…

            – andrewz
            Nov 6 '17 at 20:54













            Yea I think that would work well for your use case. That should make it pretty easy for you to set up then I would think.

            – Allen R
            Nov 6 '17 at 22:18





            Yea I think that would work well for your use case. That should make it pretty easy for you to set up then I would think.

            – Allen R
            Nov 6 '17 at 22:18













            0














            No, this is not currently possible. Ideally, this kind of resource-sharing would require creating a common framework bundle that would have to
            be submitted separately to the App Store as a third-party framework, so that even if only one of your apps is present on the
            device, it would be able to load the appropriate resources and function properly.



            Apple currently only allows third-party frameworks embedded within the app bundle.
            Even if two of your apps use the same exact version of your framework, they have to embed it separately.






            share|improve this answer




























              0














              No, this is not currently possible. Ideally, this kind of resource-sharing would require creating a common framework bundle that would have to
              be submitted separately to the App Store as a third-party framework, so that even if only one of your apps is present on the
              device, it would be able to load the appropriate resources and function properly.



              Apple currently only allows third-party frameworks embedded within the app bundle.
              Even if two of your apps use the same exact version of your framework, they have to embed it separately.






              share|improve this answer


























                0












                0








                0







                No, this is not currently possible. Ideally, this kind of resource-sharing would require creating a common framework bundle that would have to
                be submitted separately to the App Store as a third-party framework, so that even if only one of your apps is present on the
                device, it would be able to load the appropriate resources and function properly.



                Apple currently only allows third-party frameworks embedded within the app bundle.
                Even if two of your apps use the same exact version of your framework, they have to embed it separately.






                share|improve this answer













                No, this is not currently possible. Ideally, this kind of resource-sharing would require creating a common framework bundle that would have to
                be submitted separately to the App Store as a third-party framework, so that even if only one of your apps is present on the
                device, it would be able to load the appropriate resources and function properly.



                Apple currently only allows third-party frameworks embedded within the app bundle.
                Even if two of your apps use the same exact version of your framework, they have to embed it separately.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 6 '17 at 20:28









                stakristakri

                1,0151610




                1,0151610






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47144762%2fsharing-data-between-apps-on-ios%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    這個網誌中的熱門文章

                    Tangent Lines Diagram Along Smooth Curve

                    Yusuf al-Mu'taman ibn Hud

                    Zucchini