I am working on a Cordova based mobile app.
I want to open a facebook login page in InAppBrowser.
Below is my code to open the page
$scope.InAppBrowser = cordova.InAppBrowser.open('https://onboarding.roialty.com/social/facebook/start?login_key=login_key', '_blank', 'location=no');
$scope.InAppBrowser.show();
But it opens to a white blank page.
When I edit the link to www.google.com
then it opens in the browser. But it does not open my facebook login link.
I have also tried adding
<access origin="*" />
<allow-intent href="*" />
in the whitelist but still not working.
Anything I am doing wrong?
Thanks in advance!!
Have you tried allow-navigation option of Whitelisting. https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-whitelist/