You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/12/01 02:33:12 UTC

[GitHub] yomencity opened a new issue #360: Not redirected in facebook account kit

yomencity opened a new issue #360: Not redirected in facebook account kit
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/360
 
 
   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);
   }    
   }
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org