Skip to content

Commit d180b9b

Browse files
committed
[native] fix(Dropbox): Distinguish between iOS and Android result formats
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 9bab104 commit d180b9b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/lib/adapters/Dropbox.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ export default class DropboxAdapter extends CachingAdapter {
101101
Authorization: 'Bearer ' + result.access_token_response.access_token,
102102
'Content-Type': 'application/json'
103103
},
104-
body: JSON.stringify({account_id: result.access_token_response.account_id})
104+
body: Capacitor.getPlatform() === 'ios'
105+
? JSON.stringify({account_id: result.access_token_response.account_id})
106+
: JSON.stringify({account_id: result.access_token_response.additionalParameters.account_id})
105107
})
106108

107109
if (res.status !== 200) {

0 commit comments

Comments
 (0)