Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open GearBrowser via ApplicationControl #5

Open
NickHatBoecker opened this issue Mar 7, 2019 · 5 comments
Open

Open GearBrowser via ApplicationControl #5

NickHatBoecker opened this issue Mar 7, 2019 · 5 comments
Assignees

Comments

@NickHatBoecker
Copy link

Hey there,

I'm trying to implement some oAuth2 flow in my wearable web app.
"http://tizen.org/appcontrol/operation/view" is not working with my URL so I would like to open your GearBrowser in order to load the url.
Is this already possible or could you provide some code or the right place to start in your existing code, so I could try to fork and implement it myself?

Many thanks!

Best regards
Nick

Repository owner deleted a comment from Changyong-Jeon Mar 7, 2019
@fin10
Copy link
Owner

fin10 commented Mar 7, 2019

Good idea! If you work it and want to merge it to this project, I'll get it and deploy this app with your new feature.

@NickHatBoecker
Copy link
Author

NickHatBoecker commented Mar 8, 2019

@fin10 Unfortunately I'm a total C noob, but you gladly already implemented app_control function and an event listener. So I think I can get the URL there.

Can you tell me how to programmatically open a url from here once I got it?
https://github.com/fin10/GearBrowser/blob/master/GearBrowser/src/gearbrowser.c#L85

@fin10
Copy link
Owner

fin10 commented Mar 11, 2019

How about checking this guide? It's how to define the app control for other applications.
And this sample will help you to understand it more.

@NickHatBoecker
Copy link
Author

NickHatBoecker commented Mar 12, 2019

@fin10 The Application Control ist not the problem. But I need to understand your code, that's why I wanted to know if you could tell me how to render a url in your browser from the code part I mentioned above. Like what's the start, when I managed to get a url via Application Control.

@fin10
Copy link
Owner

fin10 commented Mar 13, 2019

If you so, I think you should extend arguments for specific url on web_layout_open in this line. And it should be better to check this reference guide if you have to get a response of oauth login.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants