apache / apache/cordova-plugin-inappbrowser

Not redirected in facebook account kit

Open
#360 0 comments 0 reactions 0 assignees View on GitHub
platform: android platform: ios support
Dominant language
Java
Stars
1.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

platform: IOS and android

When I use facebook account kit to verify phone number and succeed in verifying phone number, redirection does not occur.
Following is my code.

```
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
$('#loginPg_signupbtn').click(function(){
var ref = cordova.InAppBrowser.open('https://www.yomencity.xyz:8443/log', '_blank', 'location=no');
var scriptErrorMesssage =
"console.log('zz');"
ref.addEventListener('loadstop', function() {
ref.executeScript({ code: scriptErrorMesssage }, executeScriptCallBack);
function executeScriptCallBack(params) {

}
});
ref.addEventListener('loaderror', loadErrorCallBack);
});
function loadErrorCallBack(params) {

//$('#status-message').text("");
alert('loadErrorCallback');
var scriptErrorMesssage =
"alert('Sorry we cannot open that page. Message from the server is : "
+ params.message + "');"

ref.executeScript({ code: scriptErrorMesssage }, executeScriptCallBack);
}
}

Contributor guide

Open the contributing guide

Research direction

No source file or test is identified. Start by reproducing the supplied InAppBrowser flow on iOS and Android, then inspect the plugin's navigation and loadstop handling around the Facebook Account Kit verification page. Done means a successful phone-number verification redirects as expected on both platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, ios, javascript
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.