Skip to content

[Bug]: Error with GoogleUtulities GULAppDelegateSwizzler #617

@cahyofendhi

Description

@cahyofendhi

What happened?

i implement onesignal with other library Analityc in my project,and an error occurred in

if (didFailToRegisterForRemoteNotificationsIMP) {
    didFailToRegisterForRemoteNotificationsIMP(self, methodSelector, application, error);
 }

if one of my libraries is removed there is no error, I think this is a library conflict

Steps to reproduce?

1. install onesignal, firebase_core, firebase_auth, and moengage
2. if onesignal and moengage implemented concurrently, a crash occurs
3. have error in GoogleUtilities -> GULAppDelegateSwizzler

What did you expect to happen?

my expectation the library can work together

OneSignal Flutter SDK version

3.4.2

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

oneSignalDidFailRegisterForRemoteNotification:error:] + 272
31  GoogleUtilities               	       0x102bd7ba4 -[GULAppDelegateSwizzler application:donor_didFailToRegisterForRemoteNotificationsWithError:] + 264 (GULAppDelegateSwizzler.m:871)
32  CoreFoundation                	       0x1803fa230 __invoking___ + 144
33  CoreFoundation                	       0x1803f7754 -[NSInvocation invoke] + 300
34  OneSignalCore                 	       0x102d37f48 +[SwizzlingForwarder callSelector:onObject:withArgs:] + 312
35  OneSignal                     	       0x10339e424 -[OneSignalAppDelegate oneSignalDidFailRegisterForRemoteNotification:error:] + 272

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions