Thanks for the reply, but I see that I forgot to mention: this is an
installed /packaged/ app, not a hosted one, so launching it via a URL is
not an option.


2013/4/10 Paul Theriault <[email protected]>

> See https://developer.mozilla.org/en-US/docs/WebAPI/Web_Activities
>
> I think you want "view".
>
> The docs say:
>
> type: "url"
> url: {
>   required: true,
>   regexp: /^https?:.{1,16384}$/
> }
>
> Which means something lihe this:
>
> new MozActivity({
>     "name":"view",
>     "data":
>       {
>         "type":"url",
>         "url":"http://mozilla.org";
>       }
> });
>
>
>
> On Apr 10, 2013, at 7:02 AM, Flaki wrote:
>
> > Hello everyone!
> >
> > I'm building an app that tries to interact with the FourSquare OAuth
> service to authenticate. Unfortunately, FourSquare requires for the app
> authorization the user to be redirected to foursquare's own webpage (needs
> to be opened in a browser), where the user authorizes the app, then it
> redirects the browser to a pre-set url.
> >
> > Launching the authorization works like a charm, the "view" webactivity
> opens up the browser and authentication works as it should. However
> reopening the app is a hassle (the user must be presented a page after
> redirect, that instructs him to reopen the app and refresh/sync to receive
> his auth key).
> >
> > Browsing the WebActivity docs (which are quite scarce, at most)
>
> A spiteful and malicious falsehood!  Ok we are working on it. ;) Follow
> the status here:
>
> https://developer.mozilla.org/en-US/docs/WebAPI/Doc_status
>
> > I found out there is an "open" action, could probably this be used to
> launch the app from the browser? I'm thinking something not at all unlike
> android's intents... Unfortunately I didn't find any pointers (or any
> documentation) for the action.
> >
> > Thanks in advance!
> > Flaki
> > _______________________________________________
> > dev-b2g mailing list
> > [email protected]
> > https://lists.mozilla.org/listinfo/dev-b2g
>
>
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to