title: Cordova multiple permissions
body: <p>I need a way to request all permissions at the same time as runtime.</p>
  
  <p>I'm using this plugin <a href="https://github.com/NeoLSN/cordova-plugin-android-permissions" rel="nofollow noreferrer">https://github.com/NeoLSN/cordova-plugin-android-permissions</a>, but when run the app is running it request me only one permission...one of three at random. And again when I accept the READ_PHONE_STATE permission it is required to restart application for read phone state, in particular incoming number.</p>
  
  <p>The code:</p>
  
  <pre><code>var permissions = cordova.plugins.permissions;
                  var list = [
                  permissions.READ_SMS,
                  permissions.READ_PHONE_STATE,
                  permissions.PROCESS_OUTGOING_CALLS
              ];
              permissions.hasPermission(list, checkPermissionCallback, null);
              function checkPermissionCallback(status) {
                  if (!status.hasPermission) {
  
                      permissions.requestPermission(permissions.READ_PHONE_STATE, function (status) {
                          if (!status.hasPermission)
                              error1();
                      }, error1);
                      permissions.requestPermission(permissions.READ_SMS, function (status) {
                          if (!status.hasPermission)
                              error2();
                      }, error2);
                      permissions.requestPermission(permissions.PROCESS_OUTGOING_CALLS, function (status) {
                          if (!status.hasPermission)
                              error3();
                      }, error3);
  
                  }
                  function error1() {
                      console.warn('STATE permission is not turned on');
                  }
                  function error2() {
                      console.warn('SMS permission is not turned on');
                  }
                  function error3() {
                      console.warn('CALLS permission is not turned on');
                  }
              }
  </code></pre>
  
  <p>Thanks all in advance!</p>