Xcode - Sharing extensions and app groups among targets with different developer accounts - ios

I have an iOS app in Xcode which has 5 targets (meaning, they're different applications with different developer accounts, just using the same codebase).
I have added a Notification Content Extension and I want all other targets to use it.
The thing is, this extension also uses a certain App Group to share data between it and parent targets. But, because the other targets all have different developer accounts, I cannot set a global App Group to all apps. Is there a way around it? what's the best practice?
Thanks :)

No , it's not possible app groups for targets with the same developer account you may upload your logic to server and share it with apis , you may use UIPasteboard as a workaround but it's not recommended from Apple Docs

Related

Link two Facebook apps to a single Firebase project

We have two different iOS apps. They are connected to two Facebook applications for users to be able to login.
We would like to use those two apps with our single firebase project. But we were unable to bind two Facebook apps to Firebase - there is only an input for a single one.
Are there any ways or workarounds to add two Facebook apps to a Firebase project or to somehow solve this issue?
The short answer is no. A Facebook "app" is a Firebase "project", and one Firebase "project" can be linked to at most one Facebook "app".
Typically this is because all Firebase apps within a Firebase project share the same resources (Database, Storage, and Auth), the exception being Analytics and Crash Reporting, which definitely make sense on a per-app basis.
For multiple apps using different resources (like in test, staging, etc.), we recommend using different Firebase projects, which could then link to different Facebook Apps (or could use the same Facebook App, and add two bundle IDs).
Do you have a use case outside of this general framework?

Can I submit same app with different name on iOS App Store?

I have developed one iOS app but I have about 10-13 clients whom I will be selling this app. So, the app is one and I will just change the name on all apps and publish it from same account. Is it allowed by Apple? The source code will be same and the name will be different on apps. The app is built to sale copies to client so it is allowed?
It is possible, but Apple won't be happy about it, the proposed way to do this is to license your apps to the clients instead of placing them on the public app store.
Source: https://forums.developer.apple.com/thread/7825
Apple does allow one App with different names for different languages.
https://developer.apple.com/internationalization/
So you might use a little trick, where you only "translate" the name of the app and leave everything else as it is.
Yes you can submit the same app with different name.
You just need to create the different targets of the same app. Bundle identifier will be different but the source code will be same.
Here is the link for guiding of target creation-
Multiple target creation

How to use Xcode 6 to install two different iOS apps in a row

I have developed two simple iOS projects. Now I want to make a relation between two projects. Like when I will install first project then automatically second project will be installed on iOS device.
How can I do so?
I think you don't have the control to do something like this if I understand that correctly. You are trying to install an application first, then another application will be install automatically.
But, if you are thinking about creating relation between two applications, you can think about App Groups that can share data among the applications you specify. From the docs:
Use app groups to allow multiple apps access to shared containers and
allow additional interprocess communication between apps. To enable
app groups, in the Capabilities pane, click the switch in the App
Groups section. You can select existing app groups from the table or
add app groups.

How to sign iOS project with two or more different accounts keeping only one project

I've recently got an iOS app template with a friend. We want to keep only one code in our bitbucket but we want to create the best structure to sign it with our different Apple Developer Account and also have our own icons, characters , images in general. You can check our iOS template here. It's a native project.
You can do it easily using different Targets in Xcode.
You can define different icon, characters, images, etc. for each target and you will get different apps from the same Xcode project.
Check out this link from Apple Developer documentation.

Bundled iOS app using two IPAs

I am exploring into the possibility of creating a bundled app out of TWO of my apps (app1.ipa & app2.ipa). Is it possible to create a shell app (bundle.ipa) which would load app1 or app2 using their respective ipa’s (app1.ipa or app2.ipa) based on user selection? Or Do I have to merge the source codes and assets on both apps to create a bundled app? Basically, is it possible to load an ipa with-in an ipa?
No. It's not possible to create apps with more then one binary.
Instead of trying to have more than one .ipa - which I'm pretty sure isn't possible - creating a class by which the app can introspect whether or not the person has paid for the app. So if they have, the feature is available, and if not... its not available.
Use Facebook's SDK integration as a reference of how this works: before an app can retrieve items from the user's Facebook, the app must make sure that the user has signed in with Facebook.
I wish I knew of a more precise example, but honestly, this should give you the gist of it all.

Resources