Skip to content
Gyeonghwan edited this page Aug 4, 2016 · 1 revision

Handle App Scheme

You can let the game's functionality execute through an app scheme by tapping a banner image in the NAVER Cafe SDK's Home within the game.

You can add banner images that are supposed to link to an app scheme in the Community Settings page.

Write code below to configure an app delegate so that the app scheme can be handled by executing the openURL: method when the banner image is tapped.

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
//Add "gLinkSample://scheme_test" in the banner.
    if ([@"scheme_test" isEqualToString:url.host]) {
        //Go to game shop.
    }
}

Other NAVER CAFE SDK Documents.

Unity

Unreal

Cocos-2dx

Android

Clone this wiki locally