Issue with UIDocumentInteractionController iOS11 beta 4 - ios11

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.

Related

Images not displayed using localhost, after pushing code to github

Live Site
Repo
I just uploaded this project and the live site works fine. But for some reason the images are now gone when viewing it on localhost. It worked fine until I pushed and published the project.
The images folder is inside the public folder.
Also I just realized that when viewing the site on mobile, I seem to be able to scroll beyond the content (right and down). I’m not sure why that is..I also noticed that when viewing the site in the browser and enable touch simulation. Disabling it, it doesn't scroll beyond the content.
you have specified the file location as "./images/client-databiz.svg" for images
which is need to open the folder named images under the current JS file presents.
since during deploying it will build and make your code into static file
refer
you need to use "../../public/images/client-databiz.svg" to preview that actually.
I hope it will also work in production.

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

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.

Continue downloading even when leave the page

I am using CN1 to developp an application and on one of the pages within the app, there is a download button that triggers a music download from that page and the downloading is working great.
Here is the method i am using to download:
Util.downloadUrlToFileSystemInBackground()
But the problem is once i leave that page the download stops.
How can i continue downloading even if i leave the page that contains the code of dowload?
thanks
Can someone help?
That utility method downloads without blocking the UI, if you stay within the app it will continue downloading if you leave the app it will stop...
I'm guessing you want background to work when exiting the app that requires background fetch.

How to get file download complete status using selenium web driver c#

I am writing a automation script using selenium web driver for downloading multiple files one by one from a web site in Mozilla fire fox. I have downloaded first file successfully and next time I need to wait for download to complete. Can anybody help how to identify an ongoing download is completed using c# selenium web driver.? Since I am not getting the download complete status, I am unable to continue downloading next file.
Assuming you are testing file downloading in Firefox as you mentioned. Here is an approach to achieve what you want.
Open new window/tab in Firefox and navigate to 'about:downloads' directly.
i.e. driver.Navigate().GoToUrl("about:downloads");
You will get the list of downloads (i.e. already downloaded files and the file which is being downloaded currently.)
You will have to switch between your site tab and downloads tab.
Now on downloads tab, looking at HTML, you can easily find out in progress download using state or status attributes.
For example, for the first file in the list, if state="0" and/or status
contains the text 'remaining', it means downloading is in progress
So you can wait till state becomes state = 1 and/or status does not contain >the text 'remaining'
Refer the attached screen shot.
The explanation I gave here looks very high level, but I am sure this approach will work. It is simple too.
Let me know if you have any queries on this.

MessageDocNotDisclosedError shown in LiveCycle HTML Workspace ES4 with IE

I have an Adobe LiveCycle process that flattens a PDF form and displays the result to users in LiveCycle HTML Workspace ES4. The flattened form appears fine in Firefox and Chrome browsers however when viewing the same form in Microsoft Internet Explorer a "Message from webpage" window is prompted with this message: "MessageDocNotDisclosedError: Target document not disclosed."
The flattened form appears fine in IE and the application still works however I would prefer to get rid of this prompted error message. Is there a way to avoid this error message in IE?
I have seen this error message with flattened documents in the following environments:
Windows 7 / Internet Explorer 9 / Adobe Reader 11 add-on
Windows 7 / Internet Explorer 11 / Adobe Acrobat Pro 11 add-on
How are you returning your flat PDF? Are you flattening the PDF as part of the LiveCycle application and using a document variable, or are you using a custom render process? Also is the PDF document still opened through your Reader/Acrobat plugin in Firefox and Chrome?
Sounds like you have a Forms Bridge issue. When using a render process (Configurable from your Action Profile on the Assign Task activity or from the XDP template in Workbench) the default render process will inject JavaScript inside the PDF to communicate with the Workspace frame. If you're not injecting this script, the PDF and frame won't be able to communicate. If this is the case, the best way to fix this would be to:
Copy the Process Management (System)\Render PDF Form process into your application
Edit the process to return a flattened PDF instead of a dynamic one
Edit you form's action profile to use the new render process.
My team was able to get rid of the "MessageDocNotDisclosedError" message in Internet Explorer by reverting back to an earlier build of LiveCycle HTML Workspace. We reverted back from version 1.1.30 to version 1.1.14 and now the message no longer appears.

Resources