How to add a custom logo to the notifications command?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
How to add a custom logo to the notifications command?
I am currently working on this guide:
https://lessons.livecode.com/m/4069/l/5 ... ifications
And I wonder how I can add a custom logo to the post
After all, when the message is displayed, then the logo has the LIVECODE logo
If I do not understand enough I can attach a screenshot
Thank you
https://lessons.livecode.com/m/4069/l/5 ... ifications
And I wonder how I can add a custom logo to the post
After all, when the message is displayed, then the logo has the LIVECODE logo
If I do not understand enough I can attach a screenshot
Thank you
-
- Posts: 638
- Joined: Tue Jul 29, 2014 12:52 am
- Location: Brazil
Re: How to add a custom logo to the notifications command?
Hi, in iOS the OS takes care of it, meaning it uses the same Icon as the one used by the APP in the home screen.
In Android you have to setup the Status Bar Icon in the stand alone settings.
Hope it helps.
Best
In Android you have to setup the Status Bar Icon in the stand alone settings.
Hope it helps.
Best
Simon
________________________________________
To ";" or not to ";" that is the question
________________________________________
To ";" or not to ";" that is the question
Re: How to add a custom logo to the notifications command?
I have set an icon in the settings of Android and it still does not work
Last edited by liveCode on Wed Feb 23, 2022 7:43 pm, edited 1 time in total.
Re: How to add a custom logo to the notifications command?
Hi livecode,
please don't write in Hebrew, this is an english speaking forum!
Best
Klaus
please don't write in Hebrew, this is an english speaking forum!
Best
Klaus
-
- Livecode Opensource Backer
- Posts: 9294
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: How to add a custom logo to the notifications command?
How do you know that is Hebrew?
It could be Yiddish, Ladino or Fars; all of which use that writing system.
Sorry, aberrant moment . . . LOL.
Google Trashlate gave me this:
"I have set an icon in the settings of Android and it still does not work"
Is a PNG image OK for an Android icon?
It could be Yiddish, Ladino or Fars; all of which use that writing system.
Sorry, aberrant moment . . . LOL.
Google Trashlate gave me this:
"I have set an icon in the settings of Android and it still does not work"
Is a PNG image OK for an Android icon?
Re: How to add a custom logo to the notifications command?
So replace the image with a JPG type?
-
- VIP Livecode Opensource Backer
- Posts: 7216
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: How to add a custom logo to the notifications command?
The dialog icons need to be specified in script. See "gRevSmallAppIcon" and "gRevAppIcon" in the dictionary.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Livecode Opensource Backer
- Posts: 9294
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: How to add a custom logo to the notifications command?
אני לא יודעSo replace the image with a JPG type?
How about doing a spot of reading about Android and what it requires?
Re: How to add a custom logo to the notifications command?
You can and should use a PNG file for an Android icon.
If yes, then dialog does not show any icon on Android!
add a custom idon as Jaques already described.
Is that what you mean?
Do you mean the ANSWER dialog on Android as shown in the lesson?I am currently working on this guide:
https://lessons.livecode.com/m/4069/l/5 ... ifications
And I wonder how I can add a custom logo to the post
If yes, then dialog does not show any icon on Android!
This is in the IDE, right? Only here we can see an icon in the ANSWER dialog and only here we canAfter all, when the message is displayed, then the logo has the LIVECODE logo
add a custom idon as Jaques already described.
Is that what you mean?
-
- VIP Livecode Opensource Backer
- Posts: 7216
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: How to add a custom logo to the notifications command?
So true, and the one that does show is ugly too. I forgot we were talking about Android when I answered. On Android it's more common to use a toast, since answer dialogs aren't native to Android. There is a built-in "mobileToast" command in LC.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Livecode Opensource Backer
- Posts: 9294
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: How to add a custom logo to the notifications command?
Wow: learning something every day.toast
Who on earth invented that wonky bit of terminology?
- -
And, perhaps more to the point, is it possible to see what that looks like on a desktop machine?
-
- Posts: 638
- Joined: Tue Jul 29, 2014 12:52 am
- Location: Brazil
Re: How to add a custom logo to the notifications command?
If I'm getting it right, in my humble opinion what is missing is to point to the desired icon in the Status Bar Icon field which is empty in the screen shoot.
Icons have been defined for the APP and the Splash but not for the Status Bar Icon which I guess is what the original post is asking for.
Maybe I'm completely wrong but...
Icons have been defined for the APP and the Splash but not for the Status Bar Icon which I guess is what the original post is asking for.
Maybe I'm completely wrong but...
Simon
________________________________________
To ";" or not to ";" that is the question
________________________________________
To ";" or not to ";" that is the question
-
- VIP Livecode Opensource Backer
- Posts: 7216
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: How to add a custom logo to the notifications command?
The Android team, so-called because it pops up from the bottom of the screen like bread in an old toaster. It then lingers for a while and sinks back down again.
No, because it's native to Android and LC uses an OS call to present it. But you could see it in an emulator I assume. If you like installing gigabytes of Android Studio you can have as many emulators as you like.And, perhaps more to the point, is it possible to see what that looks like on a desktop machine?
Edit: newer versions of Android don't pop up from the bottom, they appear higher up on the screen. But the name stuck.
Edit edit: a group of related icons that appear at the bottom and slide down when you're done using them (think photo editing options) is called a "snackbar".
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 7216
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: How to add a custom logo to the notifications command?
Well, it certainly helps to look at the lesson the OP referred to, which I should have done earlier. He doesn't want an answer dialog, he's using the notification system. Simon is correct, for those you need to include a status bar image. I've done this before and it works.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: How to add a custom logo to the notifications command?
How do I use mobiletoast?
This is the code I tried
This is the code I tried
Code: Select all
mobileToast "hello", "long"