From 56230f5de2253167856ddcc210d0611bbea95090 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Mon, 13 Jan 2020 12:30:59 +0100 Subject: [PATCH] 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. --- mobile/bindings.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mobile/bindings.go b/mobile/bindings.go index fed2b218..3a2936b8 100644 --- a/mobile/bindings.go +++ b/mobile/bindings.go @@ -20,6 +20,10 @@ import ( // 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 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) { // Split the argument string on "--" to get separated command line // arguments.