Page 1 of 1

Home Screen link OK, custom icon problem

Posted: Wed Feb 15, 2023 7:00 pm
by Code4fun
Not sure what I am doing wrong, but I have not been successful in creating a link with a custom icon to run a Smart Basic program.
I can successfully create a link on my homescreen for any Basic program using the default icon.
i created a custom icon (167 pixel x 167 pixel with screen scale factor of 2 (for iPad Pro homescreen) and placed the png file in the ROOT directory with the program file.
Program file name = program.txt
Icon file name = programIcon@2x.png
Both files in root directory.
The link I entered in Safari was:
https://nitisara.ru/sb.php?program.txt& ... con@2x.png
Side note: Even though it may not look like it (above), the character following program.txt in link is in fact the ampersand in BASIC).
A Home Screen link is successfully created but it has a plain white icon, not my custom icon.
Anybody know what I might be doing wrong? I played around with this for awhile and am not getting anywhere.
Thanks!

Re: Home Screen link OK, custom icon problem

Posted: Wed Feb 15, 2023 11:25 pm
by Mr. Kibernetik
You need to use Internet address of your custom icon file. You cannot use local file for your icon.
Please read documentation with example in it.

What you write:
https://nitisara.ru/sb.php?programIcon@2x.png
is not an Internet address of your icon file.

For example:
http://icons.iconarchive.com/icons/tree ... t-icon.png
is a correct Internet address of an icon file.

Re: Home Screen link OK, custom icon problem

Posted: Wed Feb 15, 2023 11:54 pm
by Code4fun
Ok, thank you.
I actually found another way to accomplish what I wanted using Apple Shortcuts.

Re: Home Screen link OK, custom icon problem

Posted: Mon Mar 27, 2023 12:44 am
by rbytes
I tried a test using[*] the icon you provided.

https://nitisara.ru/sb.php?Screensaver. ... t-icon.png

The link above launches Smart Basic fine and runs the desired program, but when I try to add the icon to my Home Screen, the Add button is ghosted.
C70985C4-83D8-437C-89C1-63EEEAD7748D.jpeg
C70985C4-83D8-437C-89C1-63EEEAD7748D.jpeg (68.86 KiB) Viewed 4725 times

Re: Home Screen link OK, custom icon problem

Posted: Thu Mar 30, 2023 9:39 pm
by Mr. Kibernetik
rbytes wrote:
Mon Mar 27, 2023 12:44 am
The link above launches Smart Basic fine and runs the desired program, but when I try to add the icon to my Home Screen, the Add button is ghosted.
You did it correctly, but you did not type a desktop title in the top field (marked red):

C70985C4-83D8-437C-89C1-63EEEAD7748D.png
C70985C4-83D8-437C-89C1-63EEEAD7748D.png (60.87 KiB) Viewed 4717 times