# Small Business Account Migration

When it is necessary to abandon the original Mini Program A and use the target Mini Program B to undertake the service, the Mini Program account migration can efficiently and cost-effectively migrate the users of Mini Program A to Mini Program B.After the completion of the account migration, Mini Programs A is equivalent to cancellation and cannot continue to operate or provide relevant functions and services.When a user accesses Mini Programs A by any means, Mini Programs B are automatically opened.

Note that the Mini Program account migration and the Mini Program main body have changed to two different capabilities., developers can flexibly choose these two capabilities according to their actual demands, the specific differences are as follows:

    1. Small Business Account Migration: is carried out between two accounts, Mini Program appid changes, the main body may be the same can also be bound in the sameOpen platformUnder the account.Related subjectAfter the migration is completed, the original Mini Program will be logged off by the system and cannot be restored or used.
    1. Small Body Change: is carried out in the same account inside, Mini Program appid unchanged, operating permissions, subject information will change, Mini Program will not be canceled

# Application process

The developer can be MP Platform to hit the targetSet up -> Basic settings -> Account information -> Original ID -> Account migrationStart a Mini Program account migration application.

# Access conditions

Mini Program accounts are sealed, overseas main accounts, small games and other temporary access is not supported.

# Migration restrictions

  1. A target Mini Program can be a maximum of 5 Mini Program migration, has completed the migration of the target Mini Program, within 6 months temporarily does not support the re-launch of account migration
  2. The original and target Mini Program bodies must be bound to the sameOpen platformThe same subject under the account orRelated subject

# Apply for Migration Process

Agree to the "Small Program Account Migration Agreement" -> Select Target Mini Program -> The current Mini Program administrator confirms -> Target Mini Program administrator confirms -> Account transfer freeze period(7 days) -> Account migration completed Note: During the account migration freeze period, developers can revoke the account migration processIf the process is not reversed, the account migration is irreversible once it is completed.

# Ability to perform

# User No Perception Scene

# Relevant Scene Value

  1. Scan Code Related: One-dimensional code (1025, 1032), two-dimensional code (1011, 1013), Mini Program code (1047, 1049), one thing one code (1124, 1126)

  2. Jump Related: scheme/URL Link (1065,1194),openSDK (1069)

# C-terminal performance

No migration tips, directly pull up Mini Program B

# Users are aware of the scene

# Relevant Scene Value

All except the user-unperceived scene valueScene value

# C-terminal performance

  1. Mini Program A has not been added to theMy little program. From the beginning of the passenger terminal 8.0.32 version, the user opens the Mini Program A, will directly pull up the Mini Program B, and show the migration half-screen prompts, the user clicksI knowAfter that, the subsequent user visits the Mini Program A will automatically pull up the Mini Program B, and no longer appear prompts, and the Mini Program A'sRecently UsedRecords will be deleted.
  1. Mini Program A has been added to theMy little program. From the beginning of the passenger terminal 8.0.32 version, the user opens the Mini Program A, will directly pull up the Mini Program B, and show the migration half-screen prompts, the user clicksI knowLater, willMy little program.Replace Mini Program A in with Mini Program BAt the same time, the subsequent user access to the Mini Program A will automatically pull up the Mini Program B, no longer appear prompts, and the Mini Program A'sRecently UsedRecords will be deleted.

# Low Version Client

Below 8.0.32 client version, does not distinguish between the user has perception and the user does not perceive the scene, in any scenario, the user opens the Mini Program A, will pull up the H5 page display migration tips, the user clicksGo to OpenAfter that, it will jump to open Mini Program B. If Small Program A is added to theMy little program., then open the Mini Program B, the page appears Toast prompt “The current Mini Program has been replaced withMy little program.”。

<video controls style="width: 300px" src="https://res.wx.qq .com /op_res/mUj62j4j_uNbbmPHm0CmRY_rsafa0sGErCHk9WP6HWF9os7nCVKWAt8LxrmKBXdvsG0L1aLNZZNhT4VkXwbplw />

# Debugging process

Small programs opened by means of Mini Program account migration,Scene valueAll 1248. After the Mini Program account migration occurs, the platform will pull up the homepage of Mini Program B by default, and if the developer has the demand to open a specific page, it can be debugged according to the startup parameters.

# Start parameter inheritance

Mini Programs B can inherit appid, path, query, and scene of Mini Programs A in two ways. The corresponding fields aremigrateSourceAppIdmigrateSourcePathmigrateSourceQueryandmigrateSourceScene

  1. callApp.onLaunchto readres.queryparameter
  2. callwx.getLaunchOptionsSyncto readqueryparameter

All startup parameters except appid, path, query, and scene (extraData, etc.) are inherited as they are

# Other considerations

  1. When the user hits the Mini Program migration for the first time, if the network environment is poor, the passenger cannot get the migration information or the Mini Program B cannot launch normally, then the Mini Program A will be pulled up. If the business has a large adjustment, it is recommended that developers do a good job in the Mini Program A compatible logic
  2. The Mini Program account migration is only effective for the official version of the Mini Program, and does not take effect for the experience version and the development version.
  3. Temporarily does not support the original Mini Program administrator, project members and experience members to automatically migrate to the target Mini Program, if necessary, developers need to add their own.