Cordova inAppBrowser opens www.google.com but not

2019-09-18 13:19发布

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!!

1条回答
▲ chillily
2楼-- · 2019-09-18 14:14

Have you tried allow-navigation option of Whitelisting. https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-whitelist/

查看更多
登录 后发表回答