Android Troubleshooting
- How to get artifactory_user and artifactory_password
- Smallcase SDK keeps loading after successful login
- Dependency conflict with install-referrer library
- Getting internal_error 2000 on initialising the SDK
- 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.
- Upgrade SDK to 3.8.6.
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.
5) Received status code 401 from server while fetching 'https://artifactory.smallcase.com/artifactory/gradle-dev-local/com/smallcase/gateway/sdk/x.x.x/sdk-x.x.x.pom'.
- 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.
Updated almost 2 years ago