Change App icon in iOS through Custom URL - ios

I know we could change the app icon of the application in iOS 10.3 above and I achieved this successfully, but my question is that could we achieve this using a custom url.
Suppose that the app icon is stored in the backend server and the icon while changed according to the user login in the system. Is it possible?

This is not possible. Any alternate icons must be predefined the the app's info.plist file and are subject to app review.
Check out the documentation here: https://developer.apple.com/documentation/uikit/uiapplication/2806818-setalternateiconname
Apple's Human Interface Guidelines discusses some of the limitations of custom app icons: https://developer.apple.com/ios/human-interface-guidelines/icons-and-images/app-icon/

Related

need to apply dynamic app icon from web in iOS [duplicate]

Since iOS 10.3 has been released, Apple added a new feature which allows us to change the app icon dynamically, by using setAlternateIconName(_:completionHandler:) method. So far, as mentioned in the method documentation, we have to mention the name(s) of the alternate app icon(s) in the project .plist file, assigned to CFBundlePrimaryIcon key.
Actually, when working with static icons (icons that have been added directly to the app main bundle) it works as expected without any problems:
My question is:
Is it possible -or is there a workaround- to set the alternate app icon dynamically (for instance: icons that have been downloaded from the web and saved in the app documents directory)?
I don't think its possible.
setAlternateIconName(_:completionHandler:) API looks for the icons inside app bundle and cannot be changed to fetch from sandbox.
Also, most probably Apple reviews the app icons you have bundled for avoiding use of same app icons or icons similar to Apple apps.
Refer: https://www.hackingwithswift.com/example-code/uikit/how-to-change-your-app-icon-dynamically-with-setalternateiconname

Is it allowed to let the alternate app icon to be dynamic?

Since iOS 10.3 has been released, Apple added a new feature which allows us to change the app icon dynamically, by using setAlternateIconName(_:completionHandler:) method. So far, as mentioned in the method documentation, we have to mention the name(s) of the alternate app icon(s) in the project .plist file, assigned to CFBundlePrimaryIcon key.
Actually, when working with static icons (icons that have been added directly to the app main bundle) it works as expected without any problems:
My question is:
Is it possible -or is there a workaround- to set the alternate app icon dynamically (for instance: icons that have been downloaded from the web and saved in the app documents directory)?
I don't think its possible.
setAlternateIconName(_:completionHandler:) API looks for the icons inside app bundle and cannot be changed to fetch from sandbox.
Also, most probably Apple reviews the app icons you have bundled for avoiding use of same app icons or icons similar to Apple apps.
Refer: https://www.hackingwithswift.com/example-code/uikit/how-to-change-your-app-icon-dynamically-with-setalternateiconname

Does the CFBundleURLIconFile key have any purpose in iOS?

In an app's Info.plist the developer has the opportunity to declare custom URL schemes supported by the app. The developer may also associate each scheme with an Apple Icon Image (icns) file in the bundle that will serve as an icon.
I have never seen these URL icons used anywhere, and I can't imagine how they even would be used. Is there any purpose to setting them?
That is not an iOS thing, but is instead intended for OS X/macOS.
You can read some about it here on the macOS Human Interface Guidelines page.

How can I show my app in the menu that is displayed when text is selected in another iOS app?

Let's say I am in Safari and I select some text on a web page. A menu pops up that shows "Copy" and possibly other options.
How can I show my app in that menu?
(The purpose would be to send that text to my app in a custom url scheme.)
Edit:
I thought I saw this behavior in safari, but I was mistaken. It was in an app called Equipd.
Here is an example:
![enter image description here][2]
Is this due to a collaboration between Equipd and Pleco? Or can Equipd just do this because it knows about Pleco's custom url scheme? Or is something else going on here?
It's not possible to edit this kind of menu without using jailbreak-methods. But Apple won't allow these kind of methods in their App Store apps.
But you can use the new App Extensions which Apple introduced with iOS 8. You should check the App Extension Programming Guide Apple provides.
There are different extension-types. What you will need is the Share Extension.

Inserting the name of the app within the iOS icon = against Guidelines?

One of my customer provides me an icon including the name of the app Within the icon. I don't find it necessary since the name of the app is inserted below the icon and the icon should contain an explicit logo of the app, nothing else. Not sure it's compliant with iOS guidelines I've looked into the iOS HIG, nothing found.
Any idea on that ?
Thank
I think you can. However you should consider the Apple App Icons Guidelines.
You can see the App Icons Guideline here
I don't know if it's against Guidelines, but your app will not be rejected for this, you can find a lot of applications that have name on icon => Youtube Application

Resources