Geolocation doesn't work with cordova

I need to load a web-page with a location-button that is outside my control into my hybrid app.

In order to get this to work I have the geolocation and inappbrowser plugin. Both on iOS and Android this seemed working correctly, but when I tried with a new Android phone it didn’t work (it still works on older Android’s).

My phone is OnePlus 5T with Android 8.0.0. My last one was on pre 6.

So my question is: What additional configuration do I need to do to make it work on newer versions (6 / 7 / 8) of Android?

My AndroidManifest.xml:

<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="10010" android:versionName="1.0.10" package="nl.ans_verkeerenruimte.test.vgd.app" xmlns:android="http://schemas.android.com/apk/res/android">
  <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
  <uses-permission android:name="android.permission.INTERNET" />
  <application android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:supportsRtl="true">
        <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize">
          <intent-filter android:label="@string/launcher_name">
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
          </intent-filter>
        </activity>
  </application>
  <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="26" />
  <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
  <uses-feature android:name="android.hardware.location.gps" />
</manifest>