Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Unable to present Medallia Digital survey forms on some versions of iOS #1089

Open
TomSoPolaris opened this issue Feb 10, 2021 · 0 comments
Open

Comments

@TomSoPolaris
Copy link

TomSoPolaris commented Feb 10, 2021

We're using in-app survey forms to collect user feedback from Medallia Digital, https://www.medallia.com/solutions/digital

We noticed that when we use the Xamarin.iOS.SwiftRuntimeSupport package (v0.2.0) the survey forms aren't getting presented for iOS 11.0 devices.
If we use the Xamarin.Swift package, we have no issues.

We've written a Xamarin binding for the Medallia Digitial SDK version 3.4.2, so I'll include the DLL for that.

Here's the bit of code that shows the survey form

public void ShowForm(string formId, Action onSuccess = null, Action<MedalliaExternalError> onError = null)
{
    if (onSuccess == null)
    {
        onSuccess = new Action(() => { });
    }

    if (onError == null)
    {
        onError = new Action<MedalliaExternalError>((err) => { });
    }

    var nativeOnError = new Action<MDExternalError>((err) =>
    {
        onError.Invoke(new MedalliaExternalError
        {
            ErrorCode = (int)err.StatusCode,
            Message = err.Message
        });
    });

    MedalliaDigital.ShowForm(formId, onSuccess, nativeOnError);
}

MedalliaDigital.ShowForm() calls into:

[Export ("showForm:success:failure:")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe static void ShowForm (string formId, [BlockProxy (typeof(ObjCRuntime.Trampolines.NIDAction))] Action success, [BlockProxy (typeof(ObjCRuntime.Trampolines.NIDActionArity1V0))] Action<MDExternalError> failure);

Medallia Survey Form

MedalliaiOSBinding.dll.zip

Test Info
iPhoneX iOS 11.0 - Medallia form didn't load

iPhoneXR iOS 12.0 - Medallia form loaded as expected

@TomSoPolaris TomSoPolaris changed the title Unable to present Medallia Digital survey forms Unable to present Medallia Digital survey forms on some versions of iOS Feb 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant