# Flash messages with turbo-ios and turbo-android

**URL:** <https://discuss.hotwired.dev/t/flash-messages-with-turbo-ios-and-turbo-android/3914>\
**Category:** General\
**Created:** [March 8, 2022, 3:56pm UTC](https://discuss.hotwired.dev/t/flash-messages-with-turbo-ios-and-turbo-android/3914 "2022-03-08T15:56:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blase](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@blase](https://discuss.hotwired.dev/u/blase)\
**Post date:** [March 8, 2022, 3:56pm UTC](https://discuss.hotwired.dev/t/flash-messages-with-turbo-ios-and-turbo-android/3914/1 "2022-03-08T15:56:54Z")

</div>

I’m using `turbo-rails` , `turbo-ios` , and `turbo-android` .

In the desktop, all of the flash notifications show up correctly. In my controllers I redirect upon success to a new page (most of the time) or render the same page with `status: :unprocessable_entity` upon failure.

I have my flash HTML in the `layouts/application.html.erb` file.

In the apps, flash notifications don’t show up at all on the redirect. Sometimes, in the Android app, they show up, but only flicker for of a second, instead of the 20 they should be sticking around for.

Anybody seen this before or know why this would happen, and what I can do to get flash notifications working across all platforms?

Thank you very much!

---

<div class="post-metadata">

**Author:** ![yanshiyason](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/yanshiyason/32/2361_2.png) [@yanshiyason](https://discuss.hotwired.dev/u/yanshiyason)\
**Post date:** [April 26, 2023, 11:51pm UTC](https://discuss.hotwired.dev/t/flash-messages-with-turbo-ios-and-turbo-android/3914/2 "2023-04-26T23:51:36Z")

</div>

I am running into this issue as well.

On the web:

- submit form
- server responds with “Location” header
- browser follows redirect
- flash is in the response body

On iOS:

- show /new page in modal
- submit form
- fetch with :turbo\_stream content type gets executed (javascript initiated redirect follow)
- previous step consumes the flash
- modal gets closed by native callback code
- screen behind modal does a Turbo.visit to the “Location”
- flash is not contained in the response body (consumed in previous fetch request)

I don’t have a solution yet.
