Page 1 of 1

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

Posted: Sat Dec 06, 2014 10:13 am
by Ashish

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


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

Posted: Sat Dec 06, 2014 2:47 pm
by Alena Prykhodko

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.


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

Posted: Sat Dec 06, 2014 2:59 pm
by Ashish

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


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

Posted: Mon Dec 08, 2014 1:25 am
by Yurii Orishchuk

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.