Can Logo and Name of the App Change After Login? Swift - swift

Let's say that the logo of the app is simple W and the name of the app is My Life.
After login with a business mail I want to change the name of the app and the logo according to the business mail.
Is it possible and if yes how?

You can change an app icon if the app already contains the desired icon (see https://www.hackingwithswift.com/example-code/uikit/how-to-change-your-app-icon-dynamically-with-setalternateiconname); you cannot, say, download an icon and switch to it from within the app.
You cannot change an app display name at all. It is set through the info.plist. It can be localized (so that it changes if the user changes languages) but not altered.

Related

Open an app when clicking on a url iOS

I'm wondering if there is a way to open an app when clicking on a link in safari (or other browser) in iOS.
My app posts the name of a location, a screenshot on Twitter/Facebook which also has a link. I need to detect when the user clicks that link if he is on a pc or iOS device. If they're not on iOS device I want to continue to the linked page otherwise I want to open the app and also take take that location name as a parameter when opening it.
If the app has registered a custom URL scheme the device will open the particular app when it's asked to open a URL of a particular scheme.
This stems from the CFBundleURLSchemes key of your apps infoPlist. Apple's documentation has all the information you need to get started.
To register a URL type for your app, include the CFBundleURLTypes key
in your app’s Info.plist file. The CFBundleURLTypes key contains an
array of dictionaries, each of which defines a URL scheme the app
supports. Table 6-2 describes the keys and values to include in each
dictionary.
See more here at the iOS Programming Guide: Advanced App Tricks under 'Communicating with Other Apps' section.
Edit
In order to support the specific functionality of your question you need to go one step deeper.
Your first link needs to be a standard web URL.
The page presented from the first URL needs to detect the device and forward the user onto a second URL that will open the app on the device, with whatever parameters you want to forward to the app.
So - what you're going to have to do is build some sort of device detection into the page that your first URL points to. On that page, detect the device, then conditionally forward the user onto the second URL that will be the custom URL of your particular app.
It's possible to do this device detection, and detect if they have the app installed on their device with some of the newer HTML5 features supported by mobile browsers, but your question is themed around opening apps with URLs in iOS and the main native iOS hooks you need to support opening apps (with parameters and all) is in the documentation above.

How to have a long name for the app store and then a short name under the icon?

How can I have a long name for the app in the app store and then a shortened name under the icon once it's downloaded? Is it possible?
When creating a new app in iTunes Connect:
Then in your apps info.plist file:
The App Store name is set in iTunes Connect when you actually submit your app. The one on the home screen is the one you set in your Info.plist, so you can easily use two different names.
You can set the name of the app for AppStore in itunesconnect. And the name of the app that will be visible for the user on his/her device can be set in the info.plist file of the app. If I remember correctly it was Bundle Name, but I can be wrong. Don't have a Mac nearby at the moment
The long name is set by iTunesConnect; the short name is set in the build settings under "Product Name".

A dynamic app that allows to customize the app icon and text under it?

Is this possible? We are developing a dynamic app for a client (they then sell the app to their customers), and we have it setup to have things such as the background theme, logos within the app, etc. to be customized (meaning, when the end user logs in with their credentials, we serve us the corresponding customizations), but is there a way to customize the app icon on your phone and the message under the app icon, at least after the user logs in with their credentials that are linked to those customizations?

How to change appstore application icon

Hi can any one suggest me it is possible or not and if possible then how?
The premise is that the user pays for the app via a website and they gets an access code to send to her guests via the website. The user downloads the free app from the iPhone store and enters the code. We're trying to figure out if we can enable each user to customize the app icon so it can appear with a different image or text on the user phone.
You can't. The application's icon (and the application's property list file) is in the application bundle, which cannot be modified.
This would also violate the iOS SDK Terms of Use and the iTunes Store Terms of Service; you cannot have a third-party receive payment to access a free iOS application.
You can customize the iOS icon of a web app clipping, and put the web site to be clipped behind your private paywall. Apple has been reported in the past to accept App store apps that generate URLs to customized clippable web apps. No idea if they currently or will continue to do so.
Icons on App store iOS apps for stock OS devices can only be changed by Apple approving an update.
Evan is right... This goes against so many terms of the iOS SDK.
One thing you could do (but I can't guarantee it will be accepted by Apple) is create a registration system on your website. Then have a login on the App as soon as it loads and check that the user has a valid account which has paid the subscription. You would have to handle all of your payment stuff on the webside though, meaning the app would be useless unless the user has already sorted that out. If you do this, on submission of your app make sure you provide Apple with a demo account username and password!
As for the icon, you can't change it once the App is submitted. It is bundled in with your app binary and there is also a logo included in iTunes connect. You can change them, but only by submitting a new binary.

How to change the system wallpaper/background of an iOS device with Objective C?

I'm curious if its possible to change the system wallpaper/background for an iOS device programmatically from your own application.
Apple doesn't provide a public API for doing this. The user must select the picture to use as the wallpaper via the Settings app.
You can make your app save pictures to the user's saved photos, and instruct the user to change the wallpaper manually.