Languages

Menu
Sites
Language
Can't redirect to app from browser when OAuth

Hi.

I can launch browser for oauth. However, I can't  redirect to app when user authorized app.

Is it impossible?

Responses

3 Replies
Govindaraj Kathirvel

I am also struggling with OAuth 2.0 integration and couldn't find better solution yet.

tried with Iframe on dialog but it launching the browser.  Tizen expert advices would be appreciated.

Thanks,

Govind

talari praveen kumar

Hi 

Please try with below code

 var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view", "https:\/\/www.facebook.com\/device", null, null);
    tizen.application.launchAppControl(
    appControl,
    "tizen.internet",
    function() {
    console.log("launch application control succeed"); 
    setTimeout(function(){$.mobile.changePage("#menupage")},1000); //menu page is the page to where you want to redirect.

 },

  function(e) {console.log("launch application control failed. reason: " + e.message); },
    null );
 

youngsik yoon