This topic contains 2 replies, has 3 voices, and was last updated by  liqingpan 11 months, 3 weeks ago.

  • Author
    Posts
  • Participant
    Hattabitos
    Newbie
    Member since: 18.12.2015
    Number of posts: 19

    In iOS SDK there’s a function to “load a transaction from the server”, the syntax is like:
    eSignLive.dashboard().startESignCeremonyForTransaction(withGUID: “<transaction id>”)

    As the packages are created on server side, can we take this way in our app? If yes, what steps and information we need to prepare first?

    Participant
    Sina_moetakef
    Newbie
    Member since: 22.01.2016
    Number of posts: 1

    Score

    0

    This method downloads the transaction and starts the signing ceremony.

    Before calling the above method, the following is needed:
    1- The SDK should be integrated in the project
    2- The instance URL should be provided to the SDK

    eSignLive.dashboard().serverAddress = "SERVER ADDRESS GOES HERE"

    3- The user should be logged in to the SDK using email/password or a session token.
    login with email/password:

    - (void)loginWithEmail:(NSString *)aEmail
                  password:(NSString *)aPassword
                 andCallback:(void (^)(NSDictionary *response))aCallback;

    login with session token:

    - (void)loginWithSessionToken:(NSString *)aSessionToken withCallback:(void (^)(NSDictionary *response))aCallback;

    4- The root ViewController on which the SDK is going to render it’s UI should be set on the SDK. you can set this property from your project’s ViewController.

    eSignLive.dashboard().rootViewController =  self

    5- The transaction ID (GUID) is needed to be passed to the method.

    - (void)startESignCeremonyForTransactionWithGUID:(NSString *)aGUID;
    • This reply was modified 11 months, 3 weeks ago by  Sina_moetakef.
    • This reply was modified 11 months, 3 weeks ago by  Sina_moetakef.
    Participant
    liqingpan
    Newbie
    Member since: 26.03.2018
    Number of posts: 3

    Score

    0

    Hi Ahmad,
    Thanks for getting back to me.

    The way how it works now for our app is:
    1. Query the packageID and signerID from our sever, but they look like internal IDs rather than those registered on eSignlive.
    2. We use the packageID and signerID mentioned in bullet 1 to query sessionToken from our server, use it to construct an URL like: https://sandbox.e-signlive.ca/access?sessionToken= <session token>, then start the ceremony directly in Webview.

    Now we want to use SDK instead of this practice. I see in SDK there’s a function to “load a transaction from the server”, the syntax is like:
    eSignLive.dashboard().startESignCeremonyForTransaction(withGUID: “<transaction id>”)

    As the packages are created on server side, can we take this way in our app? If yes, what steps and information we need to prepare first?

You must be logged in to reply to this topic.