Home Screen link OK, custom icon problem

Post Reply
Code4fun
Posts: 6
Joined: Sun Feb 12, 2023 5:24 pm
My devices: iPad Pro,iPhone 13 pro
Flag: United States of America

Home Screen link OK, custom icon problem

Post 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!

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Home Screen link OK, custom icon problem

Post 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.

Code4fun
Posts: 6
Joined: Sun Feb 12, 2023 5:24 pm
My devices: iPad Pro,iPhone 13 pro
Flag: United States of America

Re: Home Screen link OK, custom icon problem

Post by Code4fun »

Ok, thank you.
I actually found another way to accomplish what I wanted using Apple Shortcuts.

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Home Screen link OK, custom icon problem

Post 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 4722 times
The only thing that gets me down is gravity...

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Home Screen link OK, custom icon problem

Post 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 4714 times

Post Reply