Page 1 of 2

Facebook redirect navigation broken

Posted: Wed Mar 07, 2018 2:59 am
by Deon

All of a sudden Facebook Login redirection is not working.

As you can see from the code below redirection has been set. Both alerts that I have set areexecuted and this code (Apperyio.navigateTo('test', {reloadPage: true});) between the two alerts is just being ignored.
Redirect Page is whitelisted with Facebook.

As I said this was working perfectly and now has stopped.

Helper.init = function() {

Code: Select all

     var callbackUrl = "[url=https://appery.io/app/view/]https://appery.io/app/view/[/url]" + Facebook_API_settings.project_id + "/app/test.html"; 
     var url = "[url=https://www.facebook.com/dialog/oauth?client_id]https://www.facebook.com/dialog/oauth...[/url]=" + Facebook_API_settings.client_id + "&redirect_uri=" + callbackUrl + "&scope=&response_type=token"; 

     if (this.isPhoneGapApp()) { 
         ref = window.open(url, '_blank', 'location=yes'); 
         ref.addEventListener("loadstart", this.getAccessToken); 
     } else { 
         window.open(url, "_self"); 

     } 
 }; 

 Helper.getAccessToken = function(event) { 

     if (event.url.indexOf('access_token') = 0) { 
         console.log("Extracting access_token..."); 
         var params = event.url.split("access_token="); 
         var _access_token = params[1].slice(0, params[1].indexOf("&")); 
         localStorage.setItem('access_token', _access_token); 
         ref.close(); 
         alert("Navigation to"); 
         Apperyio.navigateTo('test', {reloadPage: true}); 
          alert("Navigation Complete"); 
     }

Facebook redirect navigation broken

Posted: Wed Mar 07, 2018 7:12 am
by Serhii Kulibaba

Hello Deon,

Please try to debug your app remotely using Weinre debugger (https://docs.appery.io/docs/weinre-de...).

Please check if there are any errors in the Weinre console. You can learn here: https://docs.appery.io/docs/using-bro... how to open the console.


Facebook redirect navigation broken

Posted: Wed Mar 07, 2018 7:27 am
by Deon

I have no errors.
I also receive the token from facebook successfully


Facebook redirect navigation broken

Posted: Sun Mar 11, 2018 4:26 pm
by Serhii Kulibaba

Do you receive alerts "Navigation to" and "Navigation Complete"?


Facebook redirect navigation broken

Posted: Mon Mar 12, 2018 12:37 pm
by Deon

Yes. Both are received. As I said the page navigation between the two alerts are not received. The screen remains on the login screen.

The Facebook Window opens fine as well.


Facebook redirect navigation broken

Posted: Mon Mar 19, 2018 6:53 am
by Deon

7 days now. This is urgent please!!!!!!!


Facebook redirect navigation broken

Posted: Mon Mar 19, 2018 9:22 am
by Illya Stepanov

Hi Deon - the forum is not a good place for serving issues in a timely manner if you have an urgent issue - write us at a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a


Facebook redirect navigation broken

Posted: Mon Mar 19, 2018 12:50 pm
by Deon

It makes no difference. It does not get sorted in a timely manner there either. As a matter of fact I have a worse experience. My calls just get closed automatically.
Besides that, everyone should use the forum..

  1. It helps all developers that have the same or similar issue.
  2. Reduces your support.

Facebook redirect navigation broken

Posted: Fri Mar 23, 2018 4:50 am
by Deon

ZZZZZZZZZZZZZ

My client is so pissed off. They are now thinking of cancelling the order because they cannot afford for their app to run on an unstable platform.

You guys just keep losing me money!!!!!


Facebook redirect navigation broken

Posted: Fri Mar 23, 2018 8:03 am
by Serhii Kulibaba

Hello,

Please share (https://docs.appery.io/docs/teams-sha...) your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and provide us with the following information:

1) App name
2) Test credentials if login functionality is implemented in your app
3) Detailed steps to reproduce the issue