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

Closed #1458

Closed nan-li closed 2 months ago

nan-li commented 3 months ago

READ AND DELETE THIS SECTION BEFORE SUBMITTING PR

Description

One Line Summary

REQUIRED - Very short description that summaries the changes in this PR.

Details

This doesn't work the way I expected:

        let expectation = XCTestExpectation(description: "Wait for \(seconds) seconds")
        _ = XCTWaiter.wait(for: [expectation], timeout: seconds)

Motivation

REQUIRED - Why is this code change being made? Or what is the goal of this PR? Examples: Fixes a specific bug, provides additional logging to debug future issues, feature to allow X.

Scope

RECOMMEND - OPTIONAL - What is intended to be effected. What is known not to change. Example: Notifications are grouped when parameter X is set, not enabled by default.

OPTIONAL - Other

OPTIONAL - Feel free to add any other sections or sub-sections that can explain your PR better.

Testing

Unit testing

OPTIONAL - Explain unit tests added, if not clear in the code.

Manual testing

RECOMMEND - OPTIONAL - Explain what scenarios were tested and the environment. Example: Tested opening a notification while the app was foregrounded, app build with Android Studio 2020.3 with a fresh install of the OneSignal example app on a Pixel 6 with Android 12.

Affected code checklist

Checklist

Overview

Testing

Final pass


This change is Reviewable