http://appium.io/

Language: Node JS

Every time launch auto reset the app data

Set the capability attribute noReset to true. Otherwise the whatsapp
will required to key in SMS code every time you launch it.

1
2
3
4
5
6
7
8
9
10
exports.android25 = { 
browserName: '',
'appium-version': '1.6',
platformName: 'Android',
platformVersion: '7.1',
noReset: true, <-------- ADD THIS
deviceName: '192.168.57.101:5555',
appPackage: 'com.whatsapp',
appActivity: 'com.whatsapp.HomeActivity'
};
Reference: