← Back to team overview

ubuntu-phone team mailing list archive

Re: Bundling scopes with webapps

 

Have a look at ScopeBase::app_directory().

This returns a directory that is writable to the app and readable to the scope, provided they are in the same click package.

Michi.


On 20 Mar 2015, at 23:42 , nick luigi eusebio <kugi_igi@xxxxxxxxx> wrote:

> Can I also ask a question? :)
> How about if a scope is bundled with a qml app and the scope gets its data from the local data of the app? 
> This is like how the Tasks app/scope works.
> 
> From: Mitchell Reese <dev@xxxxxxxxxxxxxxxxxxxxx>
> To: ubuntu-phone@xxxxxxxxxxxxxxxxxxx 
> Sent: Friday, March 20, 2015 2:27 PM
> Subject: Re: [Ubuntu-phone] Bundling scopes with webapps
> 
> Hi Vincent, it's very possible. Look at the documentation for 
> url-dispatcher, that's your link. You basically combine your scope and 
> webapp code into the same click package. 
> 
> Have a go at making a seperate webapp and scope first, then put them 
> together after. The dev community for Ubuntu Touch on google+ is a great 
> resource - I'm also happy to help if you get stuck. Best way is to tag me 
> on google+. 
> 
> Good luck!
> 
> Mitchell
> 
> On Friday, 20 March 2015 10:31:28 PM AEDT, Vincent JOBARD wrote:
> > Hi All
> > 
> > I'm very interested to do the same, but I don't really know how to generate
> > those two.
> > 
> > I want to create a webapp through the SDK and a scope through scopecreator
> > and link them together.
> > 
> > Is it possible, and how can I do it ?
> > 
> > Cheers
> >
> 
> 
> -- 
> Sent using Dekko from my Ubuntu device
> 
> -- 
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to    : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help  : https://help.launchpad.net/ListHelp
> 
> 
> -- 
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp


References