8

Currently, I am trying to get Firebase In-App Messaging to show up on physical devices. It will only show up on the simulator devices for some reason. I am using Xcode(Swift programming language) and my Firebase pods are up to date. Is there some extra code that I need to add to trigger the In-App Messaging?

Does it only work with certain iOS devices?

(This is not Firebase Cloud Messaging)

This is an image of the what I am asking about.

Paul Beusterien
  • 27,542
  • 6
  • 83
  • 139
  • in my case, my message pop up but the button click do not go to the URL – Simon Ho Sep 12 '18 at 14:42
  • Same problem here, both iOS and Android working only on simulators – Romulo BM Apr 11 '19 at 20:04
  • It's very weird that in console i get the log `Running in simulator. Do realtime clearcut uploading.` or `Not running in simulator. Use regular clearcut uploading strategy.` (for physical devices). Maybe there's a different approach for one or other. – Romulo BM Apr 11 '19 at 20:20
  • Sometimes i found other log: `No appropriate in-app message detected for display.` I don't know what it means – Romulo BM Apr 11 '19 at 20:31
  • no solution yet ? i have same problem too. Why it's working in simulator but real device just sometimes. – Ungapps Sep 03 '19 at 09:24

4 Answers4

3

I had the same problem.

In the "Schedule > Event" setting, it was only on_foreground, but adding app_launch and first_open then works on physical devices.

FirebaseInAppMessaging 0.11.0

Hope it helps.

CKE
  • 1,533
  • 19
  • 18
  • 29
shuhei fn
  • 234
  • 2
  • 4
  • Does not work for me, version 0.11.0 too. By the way the `first_open` event isn't available on in-app messaging. – Romulo BM Apr 12 '19 at 12:29
1

For anyone having this problem with react-native-firebase, head here: https://github.com/invertase/react-native-firebase/issues/3467

There are several solutions. The one worked for me: update all react-native-firebase to the latest version (8.2.0 atm)

stkvtflw
  • 12,092
  • 26
  • 78
  • 155
0

@IanSp, it should work on physical iOS device for on_foegreound triggering conditions. Did you try to do app fore-ground a couple of times. Sometimes, it would have delay in fetching the messages and therefore it would have to wait for next app foreground timing to get it rendered.

Yong
  • 21
  • 1
0

Compare time zones in the test device and campaign. https://github.com/firebase/firebase-ios-sdk/issues/5250.

ThE uSeFuL
  • 1,456
  • 1
  • 16
  • 29