In the App development process, send verification code function for developers is a very casual thing, but if involved in international send verification code, you need to use support sending international authentication code of the third party to send verification code, Mob platform to send international still more of the function of the authentication code, although now there are too many such third party platform, But bloggers use Mob, for example, to send international captcha.

The knowledge point I want to share in this blog is that in Mob platform, a special operation is required for Android App to integrate Mob, that is, MD5 encryption operation is required for Android3.3.0 or later versions, which is obviously not required on iOS. So this post is about the Mob integration part of Android development.

Android3.3.0 or later displays 489 error when mob is integrated without MD5 signature in background, as shown below:

The Android development document on Mob’s official website contains a warning: If a 489 MD5 error is displayed, you need to configure the MD5 signature in the background of Mob. Here are some tips on Mob’s website:

To upgrade SMSSDK to 3.3.0, you must configure the MD5 signature of the Keystore in the background of mob (MD5 refers to the MD5 value in the APK signature file (Keystore) on Android).

1. The md5 code limit applies only to Android3.3.0 or later. If you run Android3.3.0 or any iOS version, adding md5 in the background does not work

2. Md5 is case insensitive and must be the same as md5 in your own package

3. The 20 tests will not be affected if the test is not reviewed or passed

4. If the previously approved package (the same package name) is upgraded to SDK, there is no test quota at present, so you must fill in MD5 and pass the approval before using it

5.Android and iOS have the same package name. If only iOS has been uploaded, set the MD5 signature under the iOS package and the approval will not affect the Android package

6. A maximum of five MD5s can be submitted under the same package name, as long as the MD5 in the requested package matches any MD5 configured in the background

7. If you are a Gradle integrated user, the update will only happen when you repackage it, and the online version will not be affected

 

The steps for configuring MD5 signatures on the mob background are as follows:

1. Package the Android project first, and then perform MD5 signature processing on the APK installation package. Set up the JKS file operation on the terminal in Android Studio and copy the MD5 signature.

2, then open the login Mob background management system, log in to the management interface, open the left menu bar “SMSSDK” send SMS verification code option, and find the package name option corresponding to Android, click the right “Set signature” button.

3. Open the dialog box for setting the MD5 signature, copy the generated MD5 signature to the input box, and click “Submit” after confirming that it is correct.

4. Finally, the setting is successful, and you can see that the setting status of THE MD5 signature has been successful in the package name option corresponding to Android, and you can also click “Click view” button to view and delete the OPERATION of the MD5 signature.

 

The above is all the content of this chapter. Welcome to pay attention to the wechat public account of Sanzhan “iOS development by Sanzhan”, and the Sina Weibo account of Sanzhan “Sanzhan 666”, welcome to pay attention to it!