For this use case you'd need proper sharing code like the one Javier has
contributed or the new API support.
On Friday, September 18, 2020 at 10:49:50 AM UTC+3 P5music wrote:
> I have no apps other than this one on iOS, so I want to share a file with
> any app that can receive generic files.
>
I have no apps other than this one on iOS, so I want to share a file with
any app that can receive generic files.
So I would like to use some generic url scheme, or instead I would like
that an installed app among the ones that are on the system from Apple
(default apps)
has a url scheme I can
Is that app one of yours or an arbitrary 3rd party app?
If the latter you will need a sharing API unless the app has specific
support for a URL file.
On Thursday, September 17, 2020 at 11:17:32 AM UTC+3 P5music wrote:
> Thanks.
> If I am not wrong this is going to be available in milestone
Thanks.
If I am not wrong this is going to be available in milestone Version 8.0.
7.0 is due 20 October, so 8.0 is far to be available.
You said about sharing data within an Url, so my app can receive an entire
file this way.
If I am not wrong this is already available in Codename One.
If it
The OS changes those locations and you don't have access to that location
anyway. It isn't a specific directory.
On Wednesday, September 16, 2020 at 9:37:26 AM UTC+3 P5music wrote:
> Thank you for the answer.
> If I understand I have to create (to be removed later) a temporary file in
> the
Thank you for the answer.
If I understand I have to create (to be removed later) a temporary file in
the "app home" (I do not know if it is just the private folder, is it?) and
then the share API, let's say on iOS, copy it in a shared location to
share. Is it possible to know what is that share
There is no such thing "enough permissions" as the apps are completely
isolates from one another in mobile apps.
Share APIs take the file and copy it (or symlink it) to a read-only OS
shared location.
Use the App Home typically to store files you want to share.
On Tuesday, September 15, 2020
The url sharing method seems to be the cleanest way to accomplish my goal,
in both directions.
But a question of mine was not answered: if I want to use the
CN.execute(filePathOrURL) method or similar, where the file has to be so it
can be received by the other app? I mean, that url could be in
@Javier
I was amazed by Codename simplicity, the Containers and so on, and just
consider what impact has having dialogs that can return any values, instead
of being forced to use an intricate tree of runnables like in Android or
iOS.
But I developed also a parallel native iOS app in XCode, now
Receiving data from other apps is supported via URL which is pretty much
the way most apps work. You can also define a supported mime type e.g.
https://www.codenameone.com/blog/associating-your-app-with-file-extension-mime-types-iphone-android-windows.html
On Friday, September 11, 2020 at
I can only speak as another CN1 user. Why are you opposed to using native
code?
The native code to export csv I shared in the issue is fairly simple. It
can be improved and simplified (now I know more obj c than I did when I
wrote it. But it works)
I used to dread writing native code (especially
I see that no iOS system apps can accept my data as URL.
Even if other apps exist that can receive data from my app in such a way, I
cannot rely on third party apps on iOS.
Then only option is native code, but I am not going to create native code I
think.
Furthermore the app can import, so the
I'm not sure I follow this completely. But the general rule is that there
are sometimes different ways of doing things on iOS.
You need to find an iOS app that does something similar and figure out what
they do.
On Friday, September 11, 2020 at 12:45:08 AM UTC+3 P5music wrote:
> I need that
I need that import/export are symmetrical, so I think that the only option
is to hand the user the json text directly to paste wherever it is
convenient for saving/sharing (and viceversa), even if it is cumbersome.
Some Android features of my app are not available on iOS, I fear, and then
You need to provide us with more details. Are you sharing between two apps
that are yours or with a well known 3rd party app?
If the latter then you need something equivalent to the share API so you
can use the native code in the issue.
If the former you can use a URL with base64 encoding and
Thanks
If I use paths I have to save the file, maybe in a private app folder.
Would it work? Would the file be sent as a copy or would the chosen app
receive the path or the system format for exchanging (automatic)?
If I use urls, is there a generic url schema to share the file? (at least
for a
I think he's probably referring to just calling CN.execute(filePathOrURL)
If you provide a file path, it will generally allow the user to select from
the apps they have installed that can open that file type. Many apps have
registered custom URL schemes that will allow you to target those apps
17 matches
Mail list logo