For my application I have a couple of really large bundles and I want the user to be able to skip (specific) updates to the content.
At the moment I'm using the Addressables.CheckForCatalogUpdates() which lets me know If there's an update.
But using this function already lets my application know there's a new version of the assets and as soon as I load the asset it wants to use the new (still to download) version.
Ideally would like to end up with a flow similar to:
Application checks for updates
User gets prompted if he/she updates
=> User updates
New content is downloaded
=> User skips updates
content is loaded from cache
Application continues
Help is much appreciated!
Regards,
Gijs
Related
I want to implement in-app-update or on-the-air update which means whenever the user opens the app, it checks and automatically downloads a new chunk of code and merges it, and asks the user to restart like most of the games (COD, PUBGm) do.
NOTE : I'm not talking about in_app_update
I tried to find out the basic workflow but could not.
I am assuming that what you need is what Firebase Remote config does, you can read about it and get more details from its Flutterfire docs
I have added a 'number_of_members' value to the Customer DocType via customization.
In my application I have tried several ways to update the value. However the value never updates in the webpage. I feel like I'm missing some sort of save or update or commit step.
For example I have tried:
frappe.client.set_value('Customer', '00042', 'number_of_members', 8887)
frappe.set_value('Customer', '00042', 'number_of_members', 8887)
frappe.db.set_value('Customer', '00042', 'number_of_members', 8887)
and also
customer = frappe.get_doc('Customer', '00042')
customer.number_of_members = 8887
customer.save()
In each case I can do something like frappe.get_value, or frappe.get_doc and it shows the value is set to 8887. However it never updates in the web side. This is what makes me think I'm updating some sort of cache or database transaction and I need some way to save it, but have not had any luck.
I am mostly testing this via bench console if that has any bearing on it, but I've tried a couple of the methods in my application code as well.
Relevant documentation:
Frappe Developer API - Document
Frappe Developer API - Database
Turns out the answer is to call frappe.db.commit() after making changes. If someone can point this out in the documentation so I can better understand how I'm missing stuff, I would appreciate it.
I also noticed if you try to Save something in the UI before you send frappe.db.commit() the UI will hang.
I have created a Service in Cocoa which grabs the selected Text and sends the result back to my Main App, so i can handle it there ( Couldn't find any other way to get current selection), now that the Service works and appears in the Service Menu, i tried to invoke the Service from my parent App to get current selection, after some goggling around i found this snippet:
NSPasteboard *pboard = [NSPasteboard pasteboardWithUniqueName];
[pboard declareTypes:[NSArray arrayWithObject:NSStringPboardType] owner:nil];
NSPerformService(#"PCB", pboard);
This one works as far as it triggers my Service, the Problem here is it redefines the NSPasteboard, so my service doesn't get the selected text, but a NIL Value Pasteboard which is blank, how can i prevent this?
And does someone know how to convert a .service bundle into an .app bundle that performs itself and sends the data and kills itself after finish?
thx for help
You want to get the text that is selected in another application, right? Probably in the front application, while your app is in the background.
For this to work, you'd have to have the Service be invoked by the front application. If you invoke it from your app in the background, it can't access the front app's text field that contains the selected text. Instead, it'll try to find a text field in your own app's responder chain (I believe – someone correct me if I'm wrong on this detail).
But for your code to run in the app's process, you'll have to inject it somehow, which is - out of security concerns - mostly prohibited by OS X, and especially with sandboxed apps.
There are ways to accomplish code injection, one that 1Password and other popular tools use it through an osax extension. But that's an entirely different topic.
Once you have your code running inside the other app's process, you should be able to copy the selected text (provided it's a Cocoa app) with [NSTextView writeSelectionToPasteboard:types:]. I haven't tested this myself, though, so this is just an assumption.
I use doctrine2.2.2 with Zend Framework1 and am currently working on an editing tool.
A user clicks a link to move someting "up" in the list, my action does its work, changes are made to teh database, i redirect but then the result, newly fetched from the database is still the old version.
I would figure it has to do with cache since i am not temporarily storing the object in the session or anything.
So the Question is: Is there a way to fetch something and tell Doctrine, not to use the cache for this specific request? Or is there a possibility to delete certain cache entries?
Yep, take a look at http://readthedocs.org/docs/doctrine-orm/en/latest/reference/caching.html?highlight=cache#result-cache .
There is a query api to enable, disable, ... result cache for example, individuallty on each query; or globally.
I am bit concern about the local database I have used in my application.
I want to maintain the data enter by user in the first version of application in second version also.
So i did one exercise in which I installed app with version 1.0 and enter few entry in my database from app. Then I installed app again with the version 2.0 and the data enter in the first version app are there in the second version also. Does that mean i don't have to do anything in order to keep users first version data in second version app.
Do let me know if any one has any idea.
Thanks in advance.
Yes, the user data (including databases) will stay around after application upgrades.
When you uninstall an application, its data will also be removed.
Does that mean i don't have to do anything in order to keep users first version data in second version app.
If you have changed the database schema for the new version, you will need to provide ways to continue to be able to read the old data or convert it to the new format. Otherwise, yes, it should just work.