OneSignal-Unity-SDK icon indicating copy to clipboard operation
OneSignal-Unity-SDK copied to clipboard

[Bug]: In-App message shows up with delay after update to 3.0.1

Open CCOdawid opened this issue 3 years ago • 3 comments

What happened?

After updating from onesignal 2.x.x to onesignal 3.0.1 In-app message that was showing up after user login is delayed about ~~30-40 seconds after app restart. Happening on dev and prod - live iOS version. In-app message settings are set to display everytime trigger is happening

Steps to reproduce?

Run application with onesignal 3.x.x
Trigger In-App message from the code and notice, that in-app is displayed correctly
Restart App
Same trigger is displayed after 30-40 seconds delay

What did you expect to happen?

In-app message being displayed correctly with every trigger

Unity version

2020.3.9

OneSignal Unity SDK version

3.0.1

Platform

iOS

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

CCOdawid avatar Jun 10 '22 10:06 CCOdawid

@CCOdawid Thanks for reporting, have you tested on Android as well to see if this is an issue there?

When restarting the app are you reopening it right away? Could you try waiting 30 seconds or move before opening the app? The reason being is that the SDK won't pull down new In-App Messages unless there is a new session. Once the SDK has this In-App Message it should caching it so future quick restarts (less than 30 seconds) should not require waiting again.

jkasten2 avatar Jun 14 '22 18:06 jkasten2

Unfortunately i'm not able to test this on Android right now. Waiting ~30 seconds when app is closed before launching it again - solves the issue. But next closing and reopening app is quick succession produces the same issue. As i understood this should work fine, because of some caching feature?

CCOdawid avatar Jun 20 '22 12:06 CCOdawid

@CCOdawid Thanks for testing and confirming, its like there might a bug here in the OneSigal-iOS-SDK where the cache is not working correctly. Something we can look into on that repo and provide an update.

jkasten2 avatar Jun 21 '22 18:06 jkasten2