Integrating TokenPocket SDK into Unity iphone
Hello Steemit friends, so I was trying to build my game into iphone device and communicate with eos wallet such as Token Pocket, and since Token Pocket have provided the Unity plugin so I just choose them
So here is their github code
https://github.com/TP-Lab/TPUnitySDK/tree/master/TPUnitySDK_iOS
step1: Update my Mac OS
- so I actually need to update my Mac Os first otherwise I cannot install latest version of Xcode
- Then I need to install latest version of xcode which eat around 10 GB and i need to clear so many stuff in order to have the room to install
- After creating new project in Unity, download the TPSDK-Unity.zip then unzip and double click open TPSDK.unitypackage to import all the stuff into Unity
- Then drag TPSDK.cs script into main camera
- Then you can click build into IOS, click switch platform, then build
- After build successful you can double click open the .xcodeproj
- Find project-> build setting, Other Linker flag add -ObjC
- On the left panel, find info.plist and add the following(you can right click open as source code)
-
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>tpunity</string>
</array>
</dict>
</array>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>tpoutside</string>
</array>
- (If you open info.plist as property list you see as above)
- LSApplicationQueriesSchemes make sure once you press login or push transaction it will pop out the "Token Pocket" app
- CFBundleURLTypes make sure once you login success or push transaction success it will go back to your app
- You will need to choose automatic sign and choose your name so that you can sign the stuff before you can plug in your iphone and test it out
- Finally you can plug in your iphone and then press run to build the project into your iphone and see it run on your iphone
if wanna product->archieve (must set enable bitcode=no)
then pay USD99 to distribute it
thanks for reading
<br /><center><hr/><em>Posted from my blog with <a href='https://wordpress.org/plugins/steempress/'>SteemPress</a> : http://fundurian.vornix.blog/2019/01/19/integrating-tokenpocket-sdk-into-unity-iphone/ </em><hr/></center>
You’ve been upvoted by TeamMalaysia Community :-
To support the growth of TeamMalaysia Follow our upvotes by using steemauto.com and follow trail of @myach
Vote TeamMalaysia witness bitrocker2020 using this link vote for witness
你那里天气如何?快来使用超级好用的steemit客户端---Partiko,这个可是我们华人团队开发的哦。如果不想再收到我的留言,请回复“取消”。
Congratulations! This post has been upvoted from the communal account, @minnowsupport, by fundurian from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.
If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.
Hi @fundurian!
Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 3.978 which ranks you at #3783 across all Steem accounts.
Your rank has dropped 9 places in the last three days (old rank 3774).
In our last Algorithmic Curation Round, consisting of 226 contributions, your post is ranked at #169.
Evaluation of your UA score:
Feel free to join our @steem-ua Discord server