QField icon indicating copy to clipboard operation
QField copied to clipboard

Import via URL working on Andoid but not on Iphone

Open TomKenda opened this issue 2 years ago • 1 comments

Describe the issue

I have a .zip file with a QField project saved on my OneDrive. When using the new Import from URL function, it does not download the project in my Iphone while it work on an Andoid.

Reproduction steps

Steps to reproduce the behavior:

  1. Import my .zip file with the QField project on a OneDrive folder
  2. Create a shared link for that zip file (that anyone can open, see in sample data)
  3. In the url, remove everything after the ? and put in download=1 (as described in #4044 )
  4. Open Import from URL dialog box in Qfield
  5. Paste in URL from 'Sample data' below to test

Expected behavior

.zip file with .qgs file in root location should be put in 'Imported projects' and be able to be opened as a project.

Observed behavior

  • On Android : expected behavior happens. The project is well imported after a little loading time (~1min)
  • On Iphone : The green bar appears, showing that the project is beeing loaded in the app. After 1 min, when the green loading bar is almost full, the Qfield app shuts down and I can observe that no project have been imported.

Sample data

Here is the link I am using : https://uclouvain-my.sharepoint.com/:u:/g/personal/tom_kenda_uclouvain_be/ERbg3KrO9KFEtmDjNxzdfDQBBttAFRjKT0sTv27IcIBSbA?download=1

Mobile

Iphone

  • I tryed on 2 different iPhone8 and got the same problem
  • OS: iOS 16.2
  • QField version: 3.0.5

Android :

  • Galaxy XCover 5
  • QField 3.0.6

TomKenda avatar Nov 09 '23 11:11 TomKenda

Update :

The .zip file I was trying to upload in QField here above was about 780Mo.

When I cropped my main polygon layer and my openstreetmap layer (copied as .gkpg) to a smaller extent it worked to upload the zipped project on both an Iphone 8 and a 12 using the "import from url" option. The cropped project is now 48Mo (zipped).

Is there a limit in .zip file size to consider when using the "import from url" option ?

However, after editing my layer (adding some new data point), I could not find a way to export the edited layer. On android, one can send a selected layer by email etc., but I don't see any export layer options here. How to do it then ?

Thanks in advance Tom

TomKenda avatar Nov 19 '23 22:11 TomKenda