Hi, currently I making some test for SHARING FILES on iOS devices.
First, and with help of @Dacarsoft, we declared on info.plist the parameters for define NEW type of file. In this case we declared ERM file format (bin raw file that contains data about map for the game).
Second, on GLB project I made a "trap" routine at start of app for detect Drag&Drop ERM files using GETCOMMANDSLINE$()
On Windows works perfecty... I can drop a ERM file to GLB app icon... the app starts, trap the file dropped, and copy to corresponding folder and run the app normally. The dropped map file are avaliable for play into the app.
Goto iOS...
If I start the app normally... tap on icon... this starts correctly... all done.
BUT
Try for open an ERM file on iOS.... when I receive a file with ERM extension iOS shows option for "Open with ElectricRPG"...
Well, I tap on "Open with..." and the iOS try to open ElectricRPG... open app... and at 1/2 second it closes... I think no load first GLB "runtime"...
AND..... later to "open with"...
If I now open the app normally... the ERM file are correctly imported to /app/Documents/Inbox folder...
(When a new file type declaration are made on XCode, and you try to open.... iOS make a copy of the file to corresponding folder into app... GLB can look this folder for load/save/icloud, etc).
The question are: Why when the iOS try to launch the app are closed? How know what parameters or type of call are using iOS for launch the app?
TIA, Hark0