# Notification in-app question

**URL:** <https://community.glideapps.com/t/notification-in-app-question/24529>\
**Category:** Ask for Help\
**Created:** [March 20, 2021, 4:46pm UTC](https://community.glideapps.com/t/notification-in-app-question/24529 "2021-03-20T16:46:26Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![raffaelevitale](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/raffaelevitale/32/18076_2.png) [@raffaelevitale](https://community.glideapps.com/u/raffaelevitale)\
**Post date:** [March 20, 2021, 4:46pm UTC](https://community.glideapps.com/t/notification-in-app-question/24529/1 "2021-03-20T16:46:26Z")

</div>

Hey folks,

the app I’m working at is small e-commerce, usually with new offers weekly.

Is there a way to inform users of those new offers?  
I was wondering if it was possible now to have a notification available for users like a “Check our latest offer!” or with a banner inside the app.

Any resource or way to do that?

Thanks a lot!!!

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [March 20, 2021, 4:57pm UTC](https://community.glideapps.com/t/notification-in-app-question/24529/3 "2021-03-20T16:57:27Z")

</div>

Yes, this is possible. Here is one approach…

- Let’s say you have a table called “Offers”, with one row for each new offer

- If you include a User Specific boolean column in that table, you can use that to record the fact that each individual user has seen the offer (and perhaps doesn’t want to see it again)

- Then you can include a component on your home screen that announces the offer.

- That component could have a visibility condition that causes it to only be shown when the user specific column associated with an offer is `not true`

- Perhaps tapping on that component would lead to a View Details screen, revealing more details about the offer

- On that screen you could include a Button labeled “Don’t show me this again”, and tapping that button would set the User Specific column to `true`, and hide the announcement on the home screen

- Alternatively, if you wanted the offer to persist for the whole week, you could instead use an “Expiry Date” column, and set the visibility condition to something like “now is on or before Expiry Date”

---

<div class="post-metadata">

**Author:** ![ehdubya](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ehdubya/32/24087_2.png) [@ehdubya](https://community.glideapps.com/u/ehdubya)\
**Post date:** [March 20, 2021, 5:52pm UTC](https://community.glideapps.com/t/notification-in-app-question/24529/4 "2021-03-20T17:52:37Z")

</div>

> [@Darren\_Murphy](#):
>
> Alternatively, if you wanted the offer to persist for the whole week, you could instead use an “Expiry Date” column, and set the visibility condition to something like “now is on or before Expiry Date”

Exactly! We do this with an inline list component that includes “offers” (3:1 scaled images in our case) that when clicked on sets a user specific column to “viewed” AND also an expiry date via expiry date column.

When displaying the inline list of offers, we set up a filter to only show list items that people have yet to click on OR have yet to expire.

---

<div class="post-metadata">

**Author:** ![raffaelevitale](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/raffaelevitale/32/18076_2.png) [@raffaelevitale](https://community.glideapps.com/u/raffaelevitale)\
**Post date:** [March 23, 2021, 8:40am UTC](https://community.glideapps.com/t/notification-in-app-question/24529/5 "2021-03-23T08:40:50Z")

</div>

Thank you so much!!

I’m having trouble in setting a new component, since I’m using the Swag Template and it’s hard for me to customise it.

Also, it’s not available for me to make it user specific  
 ![CleanShot 2021-03-23 at 09.40.06](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/4/e42faadbb3940955121702fad923af8b9715e56d.png)

How can I add new component if the Inline List on the “e-commerce” tab accept just that?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [March 23, 2021, 9:00am UTC](https://community.glideapps.com/t/notification-in-app-question/24529/6 "2021-03-23T09:00:17Z")

</div>

> [@raffaelevitale](#):
>
> I’m having trouble in setting a new component, since I’m using the Swag Template and it’s hard for me to customise it.

Sorry, I don’t know what you mean by the “Swag Template”?

> [@raffaelevitale](#):
>
> Also, it’s not available for me to make it user specific

Does your Table have a Row ID column?  
If you add the column via the Glide Data Editor, and a Row ID column doesn’t exist, then you will be prompted to add one.

> [@raffaelevitale](#):
>
> How can I add new component if the Inline List on the “e-commerce” tab accept just that?

Sorry, I don’t understand this question.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [March 23, 2021, 10:20am UTC](https://community.glideapps.com/t/notification-in-app-question/24529/7 "2021-03-23T10:20:37Z")

</div>

> [@raffaelevitale](#):
>
> How can I add new component if the Inline List on the “e-commerce” tab accept just that?

Just looked at this again and I think I understand now. If you have a List Layout selected, then all you can have on that screen is a single list. If you want additional components, then you need to switch to a Details Layout.

---

<div class="post-metadata">

**Author:** ![drascon](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drascon/32/20070_2.png) [@drascon](https://community.glideapps.com/u/drascon)\
**Post date:** [March 24, 2021, 8:11pm UTC](https://community.glideapps.com/t/notification-in-app-question/24529/8 "2021-03-24T20:11:17Z")

</div>

Hey Darren! This is great - I’m trying to do this in my app too but I’m stuck on how to set the column in the user specific column in order to “dismiss” the notification. I’m confused on how to do that… can you please help??

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [March 24, 2021, 9:36pm UTC](https://community.glideapps.com/t/notification-in-app-question/24529/9 "2021-03-24T21:36:17Z")

</div>

You can do it using a Set Columns action.  
Can you describe how you’ve implemented this, and where you got stuck?

---

<div class="post-metadata">

**Author:** ![drascon](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drascon/32/20070_2.png) [@drascon](https://community.glideapps.com/u/drascon)\
**Post date:** [March 24, 2021, 9:44pm UTC](https://community.glideapps.com/t/notification-in-app-question/24529/10 "2021-03-24T21:44:28Z")

</div>

Where to begin, where to begin… lol

My setup is very similar to how you laid it out. I have a Notifications tab that looks like this:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/8/38411c1a6c04689a366d3c0c3df61af3f8902841.png)

When I create the new notification (in the Message column), I then need to change the status of the boolean column to true so that it triggers the visibility of the actual tab in the app, seen below:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/d/0d8da014226538aa7d772fe247bd35560ab2ddbc.png)

Clicking on that opens the message notification (in an inline list) which can be clicked on, then the actual message is viewed. That all works great - the issue I’m having (and hopefully this isn’t an XY problem, lol) is that when the end user clicks the button to “Mark as read,” it either doesn’t change the user specific boolean or it changes ALL of them. This is what my custom action looks like:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/4/b448bc6291fa8493379d724a895a19c1bb5d130c.png)

I guess I’m confused how to setup the Boolean column up so that it’s true for ALL users when it’s a user specific column. That’s why there are two, because if I can tie the non user specific one to the user specific one, I can trigger it to true on check then the visibility of the tab can be based on the user specific one… if that makes sense

UPDATE: I changed the function of the set column action to clear value in the user specific column and it seems to work now but I still need to be able to show true for all users at one time

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [March 24, 2021, 10:32pm UTC](https://community.glideapps.com/t/notification-in-app-question/24529/11 "2021-03-24T22:32:30Z")

</div>

> [@drascon](#):
>
> I guess I’m confused how to setup the Boolean column up so that it’s true for ALL users when it’s a user specific column. That’s why there are two, because if I can tie the non user specific one to the user specific one, I can trigger it to true on check then the visibility of the tab can be based on the user specific one… if that makes sense
> 
> UPDATE: I changed the function of the set column action to clear value in the user specific column and it seems to work now but I still need to be able to show true for all users at one time

You shouldn’t need the extra boolean column - just the single user specific boolean will do.  
All you need to do is reverse your logic. What I mean is, when you create a new notification, that user specific column will be empty (`not true`) for all users. So you can take advantage of that - show the notification when that column is `not true` (NB. It’s preferable to use `not true`, as that covers the case of `false`, and the case of `empty`).

Then as each user marks the notification as read, you set that column to `true`.

---

<div class="post-metadata">

**Author:** ![drascon](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drascon/32/20070_2.png) [@drascon](https://community.glideapps.com/u/drascon)\
**Post date:** [March 24, 2021, 10:40pm UTC](https://community.glideapps.com/t/notification-in-app-question/24529/12 "2021-03-24T22:40:55Z")

</div>

That worked!! Thanks @Darren_Murphy!!

---

<div class="post-metadata">

**Author:** ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)\
**Post date:** [January 17, 2024, 4:52pm UTC](https://community.glideapps.com/t/notification-in-app-question/24529/13 "2024-01-17T16:52:51Z")

</div>


