# Apple vs Android Visibility Filter Problem

**URL:** <https://community.glideapps.com/t/apple-vs-android-visibility-filter-problem/45629>\
**Category:** Report a Bug\
**Created:** [July 31, 2022, 3:16am UTC](https://community.glideapps.com/t/apple-vs-android-visibility-filter-problem/45629 "2022-07-31T03:16:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cliff\_Switzer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/cliff_switzer/32/65488_2.png) [@Cliff\_Switzer](https://community.glideapps.com/u/Cliff_Switzer)\
**Post date:** [July 31, 2022, 3:16am UTC](https://community.glideapps.com/t/apple-vs-android-visibility-filter-problem/45629/1 "2022-07-31T03:16:28Z")

</div>

[https://go.glideapps.com/support/9ed34e1a-ee81-4dfb-9e00-3048bae4e47b](https://go.glideapps.com/support/9ed34e1a-ee81-4dfb-9e00-3048bae4e47b)

**Describe the bug:**  
Our app works perfect on an android device. When loaded on an apple device the buttons that have visibility rules do not work. It was working fine on IOS and started doing it this afternoon and is driving me crazy.

**Expected Behavior:**  
We have visibility filters setup on different buttons and hint boxes. If you are an “active” subscribed user some of the buttons should be hidden. This allows us to give the user a different experience if they are a subscribed user. It works great on an android device. Tried the same app on an iphone and a different iPad and the filtering is not working. They show on the app when they should be hidden and and locks the user out of buttons because it does not recognize them as an “active” user.

It also works great in the data editor. No problems. Once you test on an iphone, that’s when it does not work. Again, it works fine on a android device and in the data editor.

**How to replicate:**  
Try on an iOS device

**Demonstration:**  
Not sure how to demonstrate the issues, does not work on iOS devices.

---

<div class="post-metadata">

**Author:** ![Cliff\_Switzer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/cliff_switzer/32/65488_2.png) [@Cliff\_Switzer](https://community.glideapps.com/u/Cliff_Switzer)\
**Post date:** [July 31, 2022, 4:37am UTC](https://community.glideapps.com/t/apple-vs-android-visibility-filter-problem/45629/2 "2022-07-31T04:37:45Z")

</div>

Upon further investigation it look like iOS in not recognizing the lookups columns and Android does. Which is why the filtering is not working.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [July 31, 2022, 12:52pm UTC](https://community.glideapps.com/t/apple-vs-android-visibility-filter-problem/45629/3 "2022-07-31T12:52:11Z")

</div>

Can you explain a little more about your lookup? Are dates involved at any point in the process?

---

<div class="post-metadata">

**Author:** ![Cliff\_Switzer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/cliff_switzer/32/65488_2.png) [@Cliff\_Switzer](https://community.glideapps.com/u/Cliff_Switzer)\
**Post date:** [July 31, 2022, 3:18pm UTC](https://community.glideapps.com/t/apple-vs-android-visibility-filter-problem/45629/4 "2022-07-31T15:18:42Z")

</div>

Yes, we are are using the date paid stamp and adding 30 days to it in a math column. Then created an If Then column. If the days are less than or equal to 30 then active, else not active. We have a relationship in the users table that matches the user email to the subscription email. This allows us to Look Up if the user is active or not active.

---

<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:** [July 31, 2022, 3:34pm UTC](https://community.glideapps.com/t/apple-vs-android-visibility-filter-problem/45629/5 "2022-07-31T15:34:09Z")

</div>

Do you use the [Format Date](https://www.glideapps.com/plugins/format-date) plugin at any point, or any of the other date related plugins?

---

<div class="post-metadata">

**Author:** ![Cliff\_Switzer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/cliff_switzer/32/65488_2.png) [@Cliff\_Switzer](https://community.glideapps.com/u/Cliff_Switzer)\
**Post date:** [July 31, 2022, 3:49pm UTC](https://community.glideapps.com/t/apple-vs-android-visibility-filter-problem/45629/6 "2022-07-31T15:49:22Z")

</div>

Yes, we are using the count days formula to count duration from the date paid to give us the number of days that have passed from todays date.

---

<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:** [July 31, 2022, 3:53pm UTC](https://community.glideapps.com/t/apple-vs-android-visibility-filter-problem/45629/7 "2022-07-31T15:53:05Z")

</div>

Do you mean the [Date Difference](https://www.glideapps.com/plugins/date-difference) plugin column?

Can you provide a screen shot of the configuration of that column?

The reason I’m asking is because some of the Date Plugins are known to not always work well with Safari on IOS.

---

<div class="post-metadata">

**Author:** ![Cliff\_Switzer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/cliff_switzer/32/65488_2.png) [@Cliff\_Switzer](https://community.glideapps.com/u/Cliff_Switzer)\
**Post date:** [July 31, 2022, 3:56pm UTC](https://community.glideapps.com/t/apple-vs-android-visibility-filter-problem/45629/8 "2022-07-31T15:56:45Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/9/e95a0f776abd507bfa290c32e161a4cb6dec56c7.png)  
Oh wow, that might be the issue. We could try a different method and just do an if then formula on the TimeStampPaid.

---

<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:** [July 31, 2022, 4:00pm UTC](https://community.glideapps.com/t/apple-vs-android-visibility-filter-problem/45629/9 "2022-07-31T16:00:52Z")

</div>

Yes, if all you need is the number of days, just use a normal Math column.

`Trunc(Now-Date)` will do the job.

 ![Screen Shot 2022-07-31 at 11.59.43 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/1/61d03f00455e3c6de2889ce661d5a6c5f86a287b.png)

Please let us know if that resolves the issue for you.

---

<div class="post-metadata">

**Author:** ![Cliff\_Switzer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/cliff_switzer/32/65488_2.png) [@Cliff\_Switzer](https://community.glideapps.com/u/Cliff_Switzer)\
**Post date:** [July 31, 2022, 4:14pm UTC](https://community.glideapps.com/t/apple-vs-android-visibility-filter-problem/45629/10 "2022-07-31T16:14:18Z")

</div>

Darren!!! You nailed it! Thank you so much for the help. The data difference formula was the problem.  
We are back up and running!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 1, 2022, 12:16am UTC](https://community.glideapps.com/t/apple-vs-android-visibility-filter-problem/45629/11 "2022-08-01T00:16:10Z")

</div>

More on this: Safari in particular, doesn’t like Glide’s date formatting under the hood. It likely returned an invalid date error when you try to compute that column through Safari’s “eyes”, but it appeared as null on the front end.

Best practice is try to test these things in the builder, in Safari, or limit the use of them.
