Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give user the ability to disable onesignal load #898

Merged
merged 3 commits into from
Mar 15, 2021

Conversation

jkasten2
Copy link
Member

@jkasten2 jkasten2 commented Mar 10, 2021

This is a request to merge a community PR #297 into master. I have tested this on iOS 14.4 and Xcode 12.4 myself.

This change is Reviewable

depoon and others added 2 commits March 6, 2021 10:42
Users of one signal (including me) are experiencing crash in Simulator
mode. This commit allows users the option to turn off oneSignal
functionality by using NSProcessInfo arguments.

To disable, use “DISABLE_ONESIGNAL_SWIZZLING” in “arguments passed on launch” in
the scheme setup
…oFixCrash

Give user the ability to disable onesignal load
@jkasten2 jkasten2 changed the title Disable one signal using info process to fix crash Give user the ability to disable onesignal load Mar 10, 2021
@@ -2760,6 +2765,12 @@ +(void)setupUNUserNotificationCenterDelegate {
[OneSignalHelper registerAsUNNotificationCenterDelegate];
}

+(BOOL) shouldDisableBasedOnProcessArguments {
if ([NSProcessInfo.processInfo.arguments containsObject: @"DISABLE_ONESIGNAL_SWIZZLING"]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit comment, is ok to have the scape between containsObject: @"DISABLE_ONESIGNAL_SWIZZLING" ?

Copy link
Contributor

@Jeasmine Jeasmine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM just that small comment

@jkasten2 jkasten2 merged commit 8e0e286 into master Mar 15, 2021
@jkasten2 jkasten2 deleted the DisableOneSignalUsingInfoProcessToFixCrash branch March 15, 2021 12:32
@emawby emawby mentioned this pull request Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants