Cordova inAppBrowser opens www.google.com but not my custom facebook login page?

守給你的承諾、 提交于 2019-12-12 02:43:52

问题


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:


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



来源:https://stackoverflow.com/questions/44098201/cordova-inappbrowser-opens-www-google-com-but-not-my-custom-facebook-login-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!