05/15/2024 15:19:45

Problem Description

After sharing is completed, what callbacks can be returned respectively by clicking "Stay in QQ/WeChat" and "Return to 'the Game'" buttons?

Image Description

Solution

After sharing is completed, a click on "Stay in QQ/WeChat" and "Return to 'the Game'" buttons can return different callbacks.

1.QQ

(1) Click "Return to the Game". App will receive a callback that the sharing was successful.

(2) Click "Stay in QQ". If you open the game app from the desktop again, the 'OnShareNotify' callback received by the game is not a flag of success (flag is 1001), because at this time QQ does not know whether the game has returned to the game and cannot return a "Success" callback.

(3) After clicking "Return to the Game" or "Stay in QQ", you need to press the "Back" button until you return to the game. At this time, a "Sharing Succeeds" callback will be returned.

2.WeChat

(1) Since WeChat client 6.7.3, WeChat has modified the sharing policy to prevent harassment to users. Whether the sharing is successful or not, a "Success" callback will be returned.

(2) For earlier versions than WeChat client 6.7.3, the "Success" callback can be received only when you click "Return to the Game". In other cases, no "Success" callback will be received.



Copyright © 2024 MSDK.
All rights reserved.

results matching ""

    No results matching ""