Languages

English

Redirect to an Application Page in Tizen Store from Tizen Native Application using Deep-Link

Just add this C Code chunk to Redirect from Tizen Native application to an Application Page (Download & Details) in Tizen Store. By this you can easily advertise your applications to your app users encouraging them to download the apps. The functionality is achieved using DeepLink and AppControl API
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
static void launchAppStore(char appStoreId[100]){
    //dlog_print(DLOG_INFO, LOG_TAG, appStoreId);
    app_control_h app_control;
    app_control_create(&app_control);
    app_control_set_operation(app_control, APP_CONTROL_OPERATION_DEFAULT);
    app_control_set_app_id(app_control, "org.tizen.tizenstore");
    app_control_set_uri(app_control,appStoreId);
    if (app_control_send_launch_request(app_control, NULL, NULL) == APP_CONTROL_ERROR_NONE)
        dlog_print(DLOG_INFO, LOG_TAG, "Succeeded to Launch your app on appStore.");
    else
        dlog_print(DLOG_ERROR, LOG_TAG, "Failed to launch your app on appStore.");
    app_control_destroy(app_control);
}
/*For example package Id of facebook app ‘com.facebook.tizen’ is used, replace it with your application’s package Id. Add ‘appmanager.launch’ privilege in your ‘tizen-manifest.xml’ file.*/
char appPackageId[100],appStoreId[100];
strcpy(appPackageId,"com.facebook.tizen");
strcpy(appStoreId,"tizenstore://ProductDetail/");
strcat(appStoreId,appPackageId);
launchAppStore(appStoreId);
/* Add this privilege on your tizen-manifest.xml
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Responses

1 Replies
An Nguyen

Nice solution

Thank you for sharing

------------------------------

Name: MiAn

Website: https://modgames.io

Whatsapp: +9156323254