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

Omit misleading fatal-level log for wrappers #1468

Closed nan-li closed 1 month ago

nan-li commented 1 month ago

Description

One Line Summary

Omit misleading fatal-level log for wrappers that always happens and is alarming, and is regularly reported by SDK users.

Details

Log Fatal log for null app ID only on native SDK

Remove setLaunchOptions from OneSignal header

Motivation

Wrapper SDK users regularly report the alarming FATAL: OneSignal AppId: (null) - AppId is null or format is invalid, stopping initialization, and it is misleading, and hides the real issue they have, if any.

Scope

An error log

Testing

Unit testing

Manual testing

Iphone 13 on iOS 17.5.1

Affected code checklist

Checklist

Overview

Testing

Final pass


This change is Reviewable