Hitting allow for app access to device location

When the app starts it brings up a modal that says Allow APP to access this device’s location. I am trying it hit allow. Runnig this script through NODE

var path = require(‘path’);
var wd = require(‘wd’);
var app = require=(‘sample-apps’);

var remotes = {
local: {
host: ‘localhost’,
port: 4723

var environment = remotes.local;

var desiredCapabilities = {
//browserName: ‘Chrome’,
platformName: ‘Android’,
platformVersion: ‘6.0.1’,
deviceName: ‘DailyGig’,

driver = wd.promiseChainRemote(environment);

driver.init(desiredCapabilities, function(err){


Trying to do this for Android I read in the documentation there is away to accept all notifications but that is only IOS.