Maybe under Codename One Samples:
https://github.com/codenameone/CodenameOne/tree/master/Samples
If there isn't anything there then probably not.
On Saturday, June 5, 2021 at 10:16:57 AM UTC+3 P5music wrote:
> Well there are differences between the two projects, they have almost the
> same features, but how could I compare them, what do you mean?
> If you mean the plist file, the ext registering part is the same.
>
> However, have you a working sample, like Kitchen Sink, that has the
> feature working to inspect it?
>
> Thanks
> Il giorno sabato 5 giugno 2021 alle 06:13:52 UTC Shai Almog ha scritto:
>
>> When you generate the xcode project can you review what's different
>> between the project we generated and the one that works for you in Swift?
>> I'm guessing it's some different configuration in the plist or something
>> of that type.
>>
>> On Friday, June 4, 2021 at 9:35:12 AM UTC+3 P5music wrote:
>>
>>> Sorry no,
>>> Only the Swift version of my app is able to register the type, but that
>>> just means that the description is visible, so I think it is registered.
>>> The feature is not yet developed.
>>>
>>> Instead the feature is fully developed in the CN1 version and it works
>>> on the CN1 simulator.
>>> But the CN1 app is not even able to register the type on the iOS
>>> simulator (the description is not displayed and the option to open with the
>>> app is not presented).
>>> When selecting a file with custom extension the start method is not
>>> called, indeed the app is not even brought to the foreground.
>>> No log messages are printed in the console about that part of code (they
>>> are when the app runs in the CN1 simulator).
>>> So that code is not executed.
>>>
>>> Regards
>>>
>>> Il giorno venerdì 4 giugno 2021 alle 03:13:30 UTC Shai Almog ha scritto:
>>>
>>>> So if I understand correctly your app appears correctly in the list of
>>>> options for the file. But the arg isn't passed when you click on the app.
>>>> On which version of iOS are you testing this?
>>>>
>>>> On Thursday, June 3, 2021 at 4:36:41 PM UTC+3 P5music wrote:
>>>>
>>>>>
>>>>> My CN1 app has to open data files with custom extension when the user
>>>>> selects one of them to be opened from the Files app, or another app (like
>>>>> opening it as e-mail attachment, for example).
>>>>> The import/export feature works.
>>>>>
>>>>> This is a part of the ios.plistInject string:
>>>>>
>>>>>
>>>>> <key>UTExportedTypeDeclarations</key><array>
>>>>> <dict><key>UTTypeDescription</key><string>List of
>>>>> datatype</string><key>UTTypeConformsTo</key><array><string>public.json</string><string>public.database</string><string>public.data</string><string>public.text</string><string>public.content</string></array><key>UTTypeIdentifier</key><string>com.myapp.datatype</string><key>UTTypeTagSpecification</key><dict><key>public.filename-extension</key><array><string>ext</string></array><key>public.mime-type</key><array><string>application/json</string>
>>>>>
>>>>> </array> </dict> </dict> </array>
>>>>>
>>>>> the ios.plistInject has also other keys that correspond to working
>>>>> features of the app, so it means that the plist injection is accepted and
>>>>> processed by XCode.
>>>>>
>>>>> Instead, the custom extension is not registered in the system (iOS
>>>>> simulator).
>>>>>
>>>>> The Swift counterpart of the CN1 app is able to register the
>>>>> extension, so when the data file with custom extension is displayed as
>>>>> json
>>>>> it shows its description
>>>>> "List of datatype"
>>>>>
>>>>> Only the file name is displayed instead with the CN1 app installed.
>>>>>
>>>>> The CN1 app does not open the file if the user selects it in the Files
>>>>> app, and no option is available.
>>>>>
>>>>> The following code is used, and it works on the CN1 simulator
>>>>>
>>>>> // it is in the start() method
>>>>> String arg=Display.getInstance().getProperty("AppArg",null);
>>>>> System.out.println("arg="+arg);
>>>>> if (arg!=null) importArg(arg);
>>>>>
>>>>> Is that string in ios.plistInject wrong? It is the same of the Swift
>>>>> app, it was pasted from there in fact (see below).
>>>>>
>>>>> Thanks in advance.
>>>>>
>>>>> <key>UTExportedTypeDeclarations</key>
>>>>> <array>
>>>>> <dict>
>>>>> <key>UTTypeDescription</key>
>>>>> <string>List of datatype</string>
>>>>> <key>UTTypeConformsTo</key>
>>>>> <array>
>>>>> <string>public.json</string>
>>>>> <string>public.database</string>
>>>>> <string>public.data</string>
>>>>> <string>public.text</string>
>>>>> <string>public.content</string>
>>>>> </array>
>>>>> <key>UTTypeIdentifier</key>
>>>>> <string>com.myapp.datatype</string>
>>>>> <key>UTTypeTagSpecification</key>
>>>>> <dict>
>>>>> <key>public.filename-extension</key>
>>>>> <array>
>>>>> <string>ext</string>
>>>>> </array>
>>>>> <key>public.mime-type</key>
>>>>> <array>
>>>>> <string>application/json</string>
>>>>> </array>
>>>>> </dict>
>>>>> </dict>
>>>>> </array>
>>>>
>>>>
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/fb016a79-0917-4111-93c3-d50beccf10c3n%40googlegroups.com.