Flutter Troubleshooting

  1. Smallcase SDK keeps loading after successful login
  2. Using bridging headers with module interfaces is unsupported
  3. Dependency conflict with install-referrer library
  4. CocoaPods could not find compatible versions for pod "scgateway_flutter_plugin"

1) After the broker login/ order placement, the SDK is not returning back to our app.

  • Please add the following activities along with your unique gateway name for the key android:host in the AndroidManifest.xml file:
<activity android:name="com.smallcase.gateway.screens.transaction.activity.TransactionProcessActivity"
          android:exported="true">
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.BROWSABLE" />
        <category android:name="android.intent.category.DEFAULT" />
        <data
            android:host="<YOUR_GATEWAY_NAME>"
            android:scheme="scgateway"
        />
    </intent-filter>
</activity>

<activity android:name="com.smallcase.gateway.screens.common.RedirectActivity"
          android:exported="true">
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.BROWSABLE" />
        <category android:name="android.intent.category.DEFAULT" />
        <data
            android:host="<YOUR_GATEWAY_NAME>"
            android:scheme="scgatewayredirect"
        />
    </intent-filter>
</activity>

If the issue still persists, please mail us at [email protected] with a screen recording of the event. This will help us investigate the issue on our end.

2) Using bridging headers with module interfaces is unsupported

  • Ensure that Build Libraries for Distribution (available under build settings) is set to No.

3) We are facing an issue with installreferrer library version 2.2:

Duplicate class a.a.a found in modules jetified-installreferrer-2.2-runtime 
(com.android.installreferrer:installreferrer:2.2) and jetified-sdk-3.1.15-runtime 
(com.smallcase.gateway:sdk:3.1.15)
  • Downgrading the installreferrer library version to 2.1 would resolve this issue without impacting any major functionality of the library.
  • Alternatively, force a resolution for installreferrer library to be installed with version 2.1
configurations.all() {
  resolutionStrategy.force "com.android.installreferrer:installreferrer:2.1"
}

4) Specs satisfying the scgateway_flutter_plugin (from .symlinks/plugins/scgateway_flutter_plugin/ios) dependency were found, but they required a higher minimum deployment target.

  • The default minimum deployment target (ios) for a flutter project is set to 9.0, the scgateway_flutter_plugin requires a minimum deployment target of ios 11.0. Please ensure the following is added to the top of your Podfile.
platform :ios, '11.0'

Did this page help you?