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’,
app:’/Users/ethanp/Documents/12-07-2016/DailyGigApp/DailyGig_App/platforms/android/build/outputs/apk/android-debug.apk’,
autoLaunch:true
};

driver = wd.promiseChainRemote(environment);

driver.init(desiredCapabilities, function(err){
driver.findElement(MobileBy.xpath("//[@class=‘android.widget.Button’][2]")).tap();
driver.findElement(MobileBy.xpath("//
[@class=‘android.widget.Button’][2]")).click();

});

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