OneSignal / OneSignal-iOS-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your native iOS app with OneSignal. https://onesignal.com
Other
493 stars 262 forks source link

Pausing IAMs dismisses any currently showing IAM #1480

Closed emawby closed 2 weeks ago

emawby commented 2 weeks ago

Description

One Line Summary

Setting in app messages to paused while there is currently an IAM being displayed dismisses the IAM.

Details

This is a fairly simple change that just detects if there is currently an IAM being displayed when paused is set to true. If so we dismiss the IAM.

Motivation

Add the ability to programmatically close an IAM. This could be used in response to the IAM click listener, or some other event happening in the application

Scope

In App Messages

Testing

Manual testing

Tested that queued IAMs don't show and that lifecycle callback listeners fire.

Affected code checklist

Checklist

Overview

Testing

Final pass


This change is Reviewable