Integrating TokenPocket SDK into Unity iphone

in #ios5 years ago (edited)

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
step2: install latest 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
step3: Import Token Pocket package into Unity
  • 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
step4: modify the xcode
  • 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
Step5: Automatic sign with provision
  • 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
Step6: Test on Iphone
  • 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>

Sort:  

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:
  • You're on the right track, try to gather more followers.
  • You have already convinced some users to vote for your post, keep trying!
  • Try to improve on your user engagement! The more interesting interaction in the comments of your post, the better!

Feel free to join our @steem-ua Discord server

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.033
BTC 64344.02
ETH 3142.36
USDT 1.00
SBD 4.01