Flutter How to preserve the file created through getApplicationDocumentsDirectory() on iPhone? - file

I made an app for which I store input data in a file (using getApplicationDocumentsDirectory()), everything works fine, except on the physical iPhone where I cannot access the data again if I quit the running app (by swiping the app after having pressed the iPhone button). Also when I reinstall the app from my code the directory changes each time (for the material iPhone). I would appreciate any help to find a solution, I'm just wondering wether I must save the dir.path using key:value.

Related

Sync of reactjs app screen for multiple browser windows

Hi if I have our same reactjs screen opened on two separate browser windows, how do make sure they are always in sync (i.e., changes on one will reflect on the other)? It seems that redux does not help here?

Issue with UIDocumentInteractionController iOS11 beta 4

I have a set of apps (e.g AppA and AppB). Lets say AppA programmatically sends a zip file to another app. On AppA UIDocumentInteractionController popover is displayed with Copy to AppB icon.
Once I choose AppB it sends the zip file to AppB. The file gets copied in required folder of tht AppB and the control navigates back to AppA.
So this functionality works perfectly fine on iOS 10.3.3.
However, on iOS 11 beta 2 and now on beta 4 too, this feature does not work. The document controller popover opens and then it says unable to load on the top. Even if I click the Copy to AppB icon to copy, it does not do anything. In previous versions I was not getting this Unable to load message on the UIDocumentInteractionController popover on top as highlighted in the image below
Doc controller image.
I have checked that the plist of both apps has the LSApplicationQueriesSchemes
Update 1:
While debugging all the delegate methods do get called viz., willBeginSendingToApplication and didEndSendingToApplication. When I sending this file to another application, I dismiss thedocContoller. So even the documentInteractionControllerDidDismissOpenInMenu also gets called.
So still the docController dismisses and activity indicator Sending load to application is displayed and remains there forever. The AppB is not launched.
New findings on iOS 11 beta 5
The Unable to Load message on the UIDocumentInteractionController is no more present. However, on click of the icon AppB the problem remains.
I've seen this problem occur where the file to be copied is in the app bundle. With iOS 10 it worked just fine direct from the bundle.
In iOS 11 a file located in the app bundle will copy fine to Apple's own apps but not to third party apps. Copying the file from the bundle to the tmp folder, then using that file and everything works.

AppStudio App not showing keyboard

I have created a very simple appstudio app on the microsoft website. It is a web hosted app, so it is simple a container for a website. However, whenever i click on a text field the keyboard does not automatically pop up. I have tried with both mode on and off but to no avail. It does work generally on websites so not sure if it is something to do the app itself.
Any help appreciated.
Thank you

IntelliJ automatic updating of jsp files in GAE module stops working with server parameters --address=0.0.0.0

I have a GAE module on IntelliJ and when I after I edit the jsp files in it I can just go to the web browser, hit refresh and the changes show up. The other day I needed to access this from a different computer so I added --address=0.0.0.0 to the server parameters and after that changes to the jsp stopped showing up on the browser until I did a server restart. I removed the option and it started working again. Added it again and it stopped working, repeated several times, always the same result.
So how I can access the server from another computer yet have the ability to make changes and have those changes show up on the web browser without a server restart?
I am using an exploded war, and I have "update classes and resources" on both "on update" and "on frame deactivation".
This is with IntelliJ 13 on OSX 10.9
Thanks.
There are two ways to make iDEA update the runtime project:
Automatic via on frame deactivation, which means that IDEA updates project when you switch to another app (usually browser), i.e. when IDEA looses window focus. This works "automagically" while you test on the same computer, because you usually switch between IDEA and browser (or mobile emulator).
Manually via on update, which requires you to manually click the update button (the green circular arrows) in IDEA inside the running project pane.

Integrating mobile app and mobile web

Currently I am developing an app in corona sdk. It is still very early in the development stage so I can change the IDE or SDK if needed to achieve my goal.
I wish to create an app that can be played on multiple platforms(mainly ios and android) and I eventually want the users to be able to use the browser to continue playing at home with their progress saved. It is a simple app and could probably be recreated in html. They will have to login their accounts in order to play
How do i go about to achieve this? Should I complete my app in corona first, and then recreate the app in html and php and link the database to it separately or is there a specific development kit I could use that has this ability. Also, I am new to the development scene, how do I detect if the user is logged in a particular platform as I realize if they are logged in, in multiple places and give multiple entries it may cause problems.
If you are new to the development scene then you should continue developing with Corona.
Corona doesn't povide any web port but I know Unity does.
I think first you should complete your game for mobile platforms and if it will have success you can port it to web.
You can read this:
http://www.graphic-buffet.com/2012/06/indie-game-development-where-start/
You might want to try phonegap (http://phonegap.com/). I have never used it, I just know that it exists, so do some research to see if it would be a good fit. This might allow you to create the app once for both browsers and mobile.

Resources