0

I have an integration of MobilePush on my project (React-Native), but with the recent updates i had to update to the latest version of the SDK (8.0.4). But i getting some issues with it.

For example, in iOS i have successfully imported the modules via Swift Package Manager, and all the integration stuff on the guide, but there is no ConfigBuilder, in any of the imported packages like in the example code:

SFMCSdk.initializeSdk(ConfigBuilder().setPush(config: configuration).build())

{ ... }

SFMCSdk.initializeSdk(ConfigBuilder()
     .setPush(
          config: configuration,
          onCompletion: {result in print("TODO, Module initialization result is: \(result.rawValue)")}
     ).build())

as showed in the example the PushConfigBuilder is filled with the informations and passed to config in ConfigBuilder and then passed to initializeSdk method, but the initializeSdk accepts an instance of SFMCSdkConfig witch is incompatible with the ConfigBuilder type (because i cant import or use him).

With this context, how i can set the config (PushConfigBuilder) and integrate with the SFMCSdk? I'm using Objective-C in iOS and Java for Android, and i have tried to find something in the docs or the LearningApp in these languages, but i didn't find anything.

Currently following this guides:

Android: https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/

iOS: https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/

1 Answer 1

1

8.x versions are not currently supported (20220131) with the SDK's ReactNative plugins.

2
  • 1
    Thanks for your reply, but i'm not using the SDK's ReactNative plugin. I manually integrated the plugin.
    – gvNN
    Jan 31 at 19:15
  • May the force be with you.
    – Bill Mote
    Feb 1 at 13:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.