tencent cloud

Tencent Cloud Super App as a Service

Create Shortcut

PDF
Focus Mode
Font Size
Last updated: 2025-05-26 15:26:42

How to create shortcut

Tap More "···" in the top-right corner, and find the Create shortcut in the bottom of the screen.



After tapping, it will redirect to the Safari page.

Tap Add to Home Screen to create a shortcut for the mini program.

Complete the configurations to use the feature

1. The client needs to return the scheme protocol name via the getAppScheme delegate method. Example code:

- (NSString *)getAppScheme{
return @"xxx";
}
2. Configure the same scheme in the URL Types section of the main project's info.plist file.

3. Implement the handleOpenUrl method in the openUrl method. See the example below:
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options {
if ([[TMFMiniAppSDKManager sharedInstance] handleOpenUrl:url]){
return YES;
}
return YES;
}
Once completing the above steps, you can open the released version of the mini program by scanning the console QR code with the system camera.


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback