# Prevent Remote Notification From Showing

**URL:** <https://forums.kodeco.com/t/prevent-remote-notification-from-showing/90382>\
**Category:** Push Notifications by Tutorials\
**Created:** [December 4, 2019, 6:38pm UTC](https://forums.kodeco.com/t/prevent-remote-notification-from-showing/90382 "2019-12-04T18:38:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhasan341](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mhasan341/32/81494_2.png) [@mhasan341](https://forums.kodeco.com/u/mhasan341)\
**Post date:** [December 4, 2019, 6:38pm UTC](https://forums.kodeco.com/t/prevent-remote-notification-from-showing/90382/1 "2019-12-04T18:38:57Z")

</div>

I made an app for android where upon receiving notification from firebase I figure out if I should show it or not (based on some app settings on sharedPrefs).

I want to do the same for ios, I can save and retrieve value in userDefault (appgroup) but the problem is I couldn’t find any way to prevent the notification from showing. It’s a mutable notification (I need to download image, do edit on title and etc)

The only reason I spent my money on this book casue I thought there will be something about it, am I missing something? Please help on this regard

---

<div class="post-metadata">

**Author:** ![gargoyle](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gargoyle/32/107285_2.png) [@gargoyle](https://forums.kodeco.com/u/gargoyle)\
**Post date:** [December 4, 2019, 7:08pm UTC](https://forums.kodeco.com/t/prevent-remote-notification-from-showing/90382/2 "2019-12-04T19:08:17Z")

</div>

That’s not really a normal feature for iOS. I’d suggest you send a silent notification. When it arrives do what you need to do and then create and display a local notification.

---

<div class="post-metadata">

**Author:** ![mhasan341](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mhasan341/32/81494_2.png) [@mhasan341](https://forums.kodeco.com/u/mhasan341)\
**Post date:** [December 5, 2019, 3:50pm UTC](https://forums.kodeco.com/t/prevent-remote-notification-from-showing/90382/3 "2019-12-05T15:50:40Z")

</div>

Thanks gargoyle, I did think about it. But I read somewhere silent notification can’t be changed (like title/etc and they aren’t able to download image or anything).

Can you confirm if I can get payload from silent notification, download image and send local notify using that.

Thanks for help man

---

<div class="post-metadata">

**Author:** ![gargoyle](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gargoyle/32/107285_2.png) [@gargoyle](https://forums.kodeco.com/u/gargoyle)\
**Post date:** [December 5, 2019, 9:25pm UTC](https://forums.kodeco.com/t/prevent-remote-notification-from-showing/90382/4 "2019-12-05T21:25:52Z")

</div>

You can definitely download during a silent. That’s kinda the whole point to that type of notification. It tells your app there is new data and to go prefetch it for the user. Silent notification doesn’t have a title or anything.

So you just do your download and then schedule a Local Notification. I don’t have the book handy but it was one of the last chapters. I wanna say 13 for some reason.
