mobile: add note about using lnddir

On both Android and iOS (when not using a simulator) the application
procees doesn't have write permissions to the default lnd directory.
This commit adds a note about using the app directory given by the used
platform.
This commit is contained in:
Johan T. Halseth 2020-01-13 12:30:59 +01:00
parent f5a9813304
commit 56230f5de2
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -20,6 +20,10 @@ import (
// The unlockerReady callback is called when the WalletUnlocker service is // The unlockerReady callback is called when the WalletUnlocker service is
// ready, and rpcReady is called after the wallet has been unlocked and lnd is // ready, and rpcReady is called after the wallet has been unlocked and lnd is
// ready to accept RPC calls. // ready to accept RPC calls.
//
// NOTE: On mobile platforms the '--lnddir` argument should be set to the
// current app directory in order to ensure lnd has the permissions needed to
// write to it.
func Start(extraArgs string, unlockerReady, rpcReady Callback) { func Start(extraArgs string, unlockerReady, rpcReady Callback) {
// Split the argument string on "--" to get separated command line // Split the argument string on "--" to get separated command line
// arguments. // arguments.