Android SDK initializeSDK IOException

client-services
Level 1

Android SDK initializeSDK IOException

Hello,

Even though I've successfully configured my mobile app in the Marketo Admin > Mobile Apps & Devices area and verified push configuration, I am unable to add a new test device, under Test Devices. The URL or QR will successfully open the deep link in the app to add the device, but then it gives the  "The URL does not match this application." error.
Through trial and error, I've determined this is because the initializeSDK method is not initializing. 

I've discovered the SDK classes are logging errors with the tag "MKTO" and when checking the logs, I find the result of calling initializeSDK is "failed to initialize MarketoSDK 0.8.8 IOException"

Unless this community has the SDK developers who can give possible causes of an IOException for this class, I think I've reached the end of the road with my attempt to integrate the Android SDK.  ðŸ˜–

1 REPLY 1
capital_dev
Level 1

Re: Android SDK initializeSDK IOException

I have investigated the issue with initializing the MarketoSDK in the RNMarketoModule.kt file and identified a mismatch in the function parameters of initializeSDK.

Issue Details:

  • Problem: The initializeSDK function has parameter mismatches which result in an IOException during SDK initialization.

Solution:

To resolve this issue, update the initializeSDK function in RNMarketoModule.kt as follows:

@ReactMethod
fun initializeSDK( munchkinId: String, appSecreteKey: String,frameworkType: String,) {
marketoSdk.initializeSDK(frameworkType,munchkinId, appSecreteKey)
}