05/15/2024 15:19:45

Problem Description

If the startup Activity (e.g. SplashAcitity) is not the main Activity, the wakeup callback (LoginBaseRetEvent) cannot be triggered when the game is launched from a third party

Cause of the Problem

The third-party 'Intent' information received by the startup Activity is not correctly transmitted to the main Activity transparently. The error example is as follows:

Intent myInetent = new Intent();    // error keycode: new Intent()
// The game adds user-defined parameters    
......    
startActivity(myIntent);

Solution

The third-party 'Intent' information received by the startup Activity needs to be passed to the main Activity. The correct example is as follows:

Intent myInetent = getIntent();    
// The game adds user-defined parameters    
......    
startActivity(myIntent);

Extended reading:
When the game is launched from a third party, the related information will be passed to the first started Activity through 'Intent'. If the startup Activity is not the main Activity, it is needed to pass the third-party 'Intent' information received by the startup Activity to the main Activity.



Copyright © 2024 MSDK.
All rights reserved.

results matching ""

    No results matching ""