MYKEY Docs
中文English
English
English
  • Introduction
  • Sign in with MYKEY
    • Verify signature at backend server
    • More detailed tech and process of MYKEY login
  • Integrate with MYKEY
    • Multiple ways to integration with MYKEY
    • Mobile Dapp with H5 pages
      • ETH
      • EOS
      • JS Extensions
    • Integration via MYKEY Android SDK
      • Preconditions
      • Initiate SDK
      • Authorize
      • Sign
      • Transfer
      • Call contracts
    • Integration via MYKEY iOS SDK
      • Preconditions
      • Initiate SDK
      • Authorize
      • Sign
      • Transfer
      • Call contracts
    • Web application with scanning qrcode
    • SimpleWallet Protocol Compatible
    • Deeplink Protocol
  • Dive into MYKEY
    • Dive into MYKEY account
    • Classes and methods
      • Android Classes
      • iOS Classes
    • Error Code
    • Identify MYKEY deposit transaction
      • ETH deposit
      • EOS deposit
    • MYKEY Whitepaper
  • KEY ID
    • KEYID ETH Contracts introduction
      • Account Module
      • Account Storage Module
      • Logic Management Module
      • Logic Module
    • Account recovery mechanism
    • KEYID contract upgrade process
    • KEYID contract upgrade records
      • ETH
        • KEY ID Ethereum Contracts Upgrade Pending Time Adjustment
        • KEY ID Ethereum logic contract module upgrade announcement
        • KEY ID Ethereum Contracts Upgrade Pending Time Adjustment
        • KEY ID Ethereum AccountLogic/DualsigsLogic Contracts Upgrade
        • KEY ID Ethereum DappLogic Contract Upgrade
  • Development Resources
    • Ethereum
    • EOS
  • Join Us
    • DApp submit
    • Developers Community
Powered by GitBook
On this page
  • 1. Add "MYKEYWalletLib.h" file in "AppDelegate.m"
  • 2. Init
  • 3. Invoke handlerUrl in "application:openURL:"

Was this helpful?

  1. Integrate with MYKEY
  2. Integration via MYKEY iOS SDK

Initiate SDK

PreviousPreconditionsNextAuthorize

Last updated 5 years ago

Was this helpful?

1. Add "MYKEYWalletLib.h" file in "AppDelegate.m"

Swift

import MYKEYWalletLib

Object-C

#import <MYKEYWalletLib/MYKEYWalletLib-Swift.h>

2. Init

To instantiate class MyKeySdk, this lightweight authorization will initiate SDK in major process and use the same logic as SimpleWallet protocol. By using such way, DAPPs don't need to have own accounts system. Binding with MYKEY is not needed either. Parameters are here:

let initSimpleData = InitSimpleRequest()
initSimpleData.dappName = "DappNameA"
initSimpleData.dappIcon = "https:.../xx.png"
initSimpleData.scheme = "demoscheme"
initSimpleData.disableInstall = true
MYKEYWallet.shared.initWalletSimple(initSimpleData: initSimpleData)

For the param scheme,

3. Invoke handlerUrl in "application:openURL:"

MYKEYWallet.shared.handleUrl(url: url)
refer scheme configuration in 1.2
InitSimpleRequest