Skip to content

Data loss issue with Push Notification Capture service #113

@nlash-livly

Description

@nlash-livly

iOS 17.6.1 / Xcode 16 / Embrace SDK version 6.5.1 (also tried 6.5.0, 6.4.2)

When using the Push Notification Capture service, some data in push notifications is stripped out, causing app routing logic to fail upon tapping a notification. UNUserNotificationCenterDelegate methods + application(_:didReceiveRemoteNotification:fetchCompletionHandler:) are not invoked in AppDelegate with the push notification capture service enabled. Push notifications function normally when the push notification capture service is disabled.

We use an old version of the Branch SDK 0.36.0 to intercept notifications. The Branch handler is invoked, but some data gets nil'd out.

Setup:

      let captureServices = CaptureServiceBuilder()
           .addDefaults()
           .add(.pushNotification(options: .init(captureData: true))) // also tried false
           .build()

        try Embrace
            .setup(
                options: .init(appId: Constants.embraceKey,
                               captureServices: captureServices,
                               crashReporter: EmbraceCrashReporter(),
                               logLevel: .debug))
            .start()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions