Android Troubleshooting

  1. How to get artifactory_user and artifactory_password
  2. Smallcase SDK keeps loading after successful login
  3. Dependency conflict with install-referrer library
  4. Getting internal_error 2000 on initialising the SDK
  5. Unauthorized 401 error

1) How do we get ${artifactory_user} and ${artifactory_password} for the native SDK?

  • The integrations team will be sharing these credentials along with the JWT secret and API secret. If you haven't yet received it, please mail us at [email protected].

2) 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>

Also, ensure that the value of {YOUR_GATEWAY_NAME} matches the input value of gateway argument in the Environment class of the setConfigEnvironment method.
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.

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.

4) We are facing this error: Init response: {"errorCode":2000,"errorMessage":"internal_error"}

  • Please make sure that the buildType is set to Environment.PROTOCOL.PRODUCTION while calling the the setConfigEnvironment method. This is independent of the environment in which your project is operating (example: UAT/STAGING) and should always be in the PRODUCTION state.

  • Please ensure that the artifactory username and password matches the ones shared by the gateway integrations team and that the gradle is not set to operate in offline mode.

Did this page help you?