-
sromicLikes 0Problem Description
Hello Sir,
I am working on a cocos2d-x app that is a complete multiplayer game. A certain number of users enter a room to play a game. Now I want to share my game url from inside the game to whatsapp, facebook, twitter etc which if someone clicks on, if the game is not installed on their device, it will open the respective google or iOS app store for the game’s page. If the game is installed, the game will be opened.
I know how to use SDKBOX for facebook sharing and access. Please tell me how to achieve sharing over whatsapp and related platform. Also tell me how to set my project up for this.It would be really helpful if you can give me a step by step overview of what is to be done.
Thank you,
Sourav.
-
Sonar Systems adminLikes 0
You will need to do native sharing.
-
sromicLikes 0
Ok. Thank you.
Please tell me how to achieve this.
-
Sonar Systems adminLikes 0
First you need to create a layer to communicate from Cocos2d-x C++ to the native side aka iOS (Objective-C) and Android (Java). Our Cocos Helper framework should help you understand how to do this http://www.sonarlearning.co.uk/coursepage.php?topic=game&course=sonar-cocos-helper
Then you need to call the native sharing for each platform.
-
sromicLikes 0
Thank You.
-
Sonar Systems adminLikes 0
Your welcome :D
If you have any further questions feel free to ask.
Login to reply