Uncoded invitation

Last updated:2021-12-15
Uncoded invitation

Functional Introduction

Bring parameters to the delayed depth link service APP Internal, business process completed. From Web Active To APPEasy to achieve seamless connectivity.

Apply scene

Extensively applied, the field is free from the invitation code, avoiding the impact of cumbersome user operations and increasing conversion rates. For example, if the game room invites a friend/spattern/establishes a top-down relationship, quickly installs an incentive to open the application for completion

Usage

Suffix with short chain AAaH Example:uid-123456(Invites id generation rules to be determined by the user)

Web SDK How to use

JMLink description Web SDK Add on Initialisation invtparams Configure, add parameters key Like u_id, on the web page JMLink Initially coded as:

new JMLink({ jmlink:'AAaH', button:document. querySelector('a#btnOpenApp') invtparams:{"u_id": "uid-123456"} });
          new JMLink({
 jmlink:'AAaH',
 button:document. querySelector('a#btnOpenApp')
 invtparams:{"u_id": "uid-123456"}
});

        
This code block is shown in the floating window

Android SDK How to use

Interface definition

  • JMLink API.getInstance().getParam(String key)

    • Interface description:
      • From JS SDK Passing uncoded invitation parameter information
    • Parameter description:
      • key:The user-defined parameter from the developerkey Like what?"u_id"
    • As a result, returns:
      • String:Customizes the actual value of the parameter. Return if Nonenull
  • JMLink API.getInstance().getParams()

    • Interface description:
      • From JS SDK Passing uncoded invitation parameter information
    • As a result, returns:
      • Include all uncoded parametersmap If not availablemapYes. size0;

Description of use

*** InappCenter Call above APIFetch uncoded invitation parameters***

Use Example

private void init() { Uri uri = getIntent().getData(); Log. e(TAG, "data = " + uri); JMLink API.getInstance().register(new JMLinkResponse() { @Override public void response(JMLinkResponseObj obj) { Log. e(TAG, "replay = " + obj. paramMap + " " + obj. uri + " " + obj. source + " " + obj. type); // 获取无码邀请参数 String uid = JMLink API.getInstance().getParam("u_id"); } }); JMLink API.getInstance().routerV2(uri); }
          private void init() {
 Uri uri = getIntent().getData();
 Log. e(TAG, "data = " + uri);
 JMLink API.getInstance().register(new JMLinkResponse() {
 @Override
 public void response(JMLinkResponseObj obj) {
 Log. e(TAG, "replay = " + obj. paramMap + " " + obj. uri + " " + obj. source + " " + obj. type);
 
 // 获取无码邀请参数
 String uid = JMLink API.getInstance().getParam("u_id");
 }
 });
 JMLink API.getInstance().routerV2(uri);
 }

        
This code block is shown in the floating window

iOS SDK How to use

iOS Peer call interface to get the value passed back in the uncoded invitation

/** * 获取无码邀请中传回来的相关值 * @param paramKey paramKey,比如:u_id * @handler handler 回调 */ +(void)getMLinkParam:(nonnull NSString *)paramKey handler:(void(^_Nonnull)(NSDictionary * __nullable params))handler;
          /**
 * 获取无码邀请中传回来的相关值
 * @param paramKey paramKey,比如:u_id
 * @handler handler 回调
 */
+(void)getMLinkParam:(nonnull NSString *)paramKey 
        handler:(void(^_Nonnull)(NSDictionary * __nullable params))handler;

        
This code block is shown in the floating window
Was this document helpful?

Copyright 2011-2026, jiguang.cn, All Rights Reserved. 粤ICP备12056275号-13 Shenzhen Hexun Huagu Information Technology Co., Ltd.

Open in Docs Center