Ashish
Posts: 0
Joined: Sat Sep 13, 2014 3:18 pm

how to get the url of any page of app to return to our app from any other site.

Hi,
I am doing a ouath authentication of a site and for the validation of unauthorized token , i will have to open the url of this site with a callback url. So if i am giving the url like "http://appery.io/app/view/a8413bc6-93..." this, in the load event i am not able to access localstorage set in the my app last page where i am requesting for the authorized oauth token.

Can someone help me in this and tell me that how and what callback url should i give so that it can come back from this site to my app and i can also execute my next step of ouath authentication

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

how to get the url of any page of app to return to our app from any other site.

Hello Ashish,

In browser you can see page when you are authorized to Appery.io.
Please clarify do you have mobile or web app?

Also, you can use navigate to page action.

Ashish
Posts: 0
Joined: Sat Sep 13, 2014 3:18 pm

how to get the url of any page of app to return to our app from any other site.

Hi Alena
My issue is with mobile app where as in desktop browser it is working fine.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

how to get the url of any page of app to return to our app from any other site.

Hi Ashish,

In phone mode you have all pages on your device(not direct link to your app).

But you can convert local url public app url in following way:

pre

//Note you should replace "93534752-d9f7-46fc-86cf-c2c20637cda4" with your app id.
var appPath = "http://appery.io/app/view/93534752-d9f7-46fc-86cf-c2c20637cda4/"
var page = /([\/]*html)$/gi.exec(location.href)[1]
var fullURL = appPath + page;
aleft(fullURL);

/pre

Regards.

Return to “Issues”