Re: LC iOS Command 'mergPopActivity'

2020-10-22 Thread Graham Samuel via use-livecode
The subject of this conversation is a bit wrong now, but I will keep so that 
the thread continues.

Looking at this a bit further, it looks like there is more than one scheme for 
getting one app to open another.

I find that the Dictionary entry for ‘launch url’ doesn’t quite conform to the 
example in the first link given by Bernard, at least not AFAIKS. The Dictionary 
says that if an app successfully launches another app in order to pass it a 
file, the originating app quits; but I don’t think the example shows that, and 
on a real iPhone for example, a little button appears on the top left of the 
screen allowing one to go back to the originating app. So I think the 
Dictionary is wrong and the example is right, but of course I will try it. 

It’s also stated in the Dictionary that you can launch a file, and the OS will 
attempt to open a ‘default' app that accepts that sort of file. Of course there 
may be many such apps for common formats like text, but there will be one 
chosen by the OS as the default. Again, one needs to experiment.

What it doesn’t say in the example or in the dictionary is how to find the 
equivalent of a Custom URL for an existing app (not an LC app) and thus avoid 
the problem that one may not wish to use the default app to process one’s data.

As ever, I would be very happy for guidance and meanwhile will go on 
experimenting. (This is in part, I admit, displacement activity since my real 
priority is plunging back into the iOS App Deployment system, that gives me the 
jitters every time.)

Graham

> On 22 Oct 2020, at 10:48, Graham Samuel via use-livecode 
>  wrote:
> 
> Thanks Bernard - looks very promising! I will experiment. Means a lot of 
> installation into an actual phone, I think, due to the limitations of the 
> Xcode simulator (can’t load existing apps)..
> 
> Very helpful
> 
> Graham
> 
>> On 22 Oct 2020, at 01:08, Bernard Devlin via use-livecode 
>>  wrote:
>> 
>> Hi Graham
>> 
>> I wondered if this information is of use.  URL calls are not limited to
>> "http://;.
>> 
>> Having a LC app respond to a URL call:
>> http://lessons.livecode.com/m/4069/l/58672-using-custom-url-schemes
>> 
>> Apps and their URL schemas:
>> https://ios.gadgethacks.com/news/always-updated-list-ios-app-url-scheme-names-0184033/
>> 
>> Regards
>> Bernard
>> 
>> On Wed, Oct 21, 2020 at 4:33 PM Graham Samuel via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> So far I have not found out how to invoke another app directly from inside
>>> an iOS app, although I think I can invoke a browser using a URL. Perhaps
>>> this is easier than I thought. Will report.
>>> 
>>> Graham
>>> 
>>> 
>>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC iOS Command 'mergPopActivity'

2020-10-22 Thread Graham Samuel via use-livecode
Thanks Bernard - looks very promising! I will experiment. Means a lot of 
installation into an actual phone, I think, due to the limitations of the Xcode 
simulator (can’t load existing apps)..

Very helpful

Graham

> On 22 Oct 2020, at 01:08, Bernard Devlin via use-livecode 
>  wrote:
> 
> Hi Graham
> 
> I wondered if this information is of use.  URL calls are not limited to
> "http://;.
> 
> Having a LC app respond to a URL call:
> http://lessons.livecode.com/m/4069/l/58672-using-custom-url-schemes
> 
> Apps and their URL schemas:
> https://ios.gadgethacks.com/news/always-updated-list-ios-app-url-scheme-names-0184033/
> 
> Regards
> Bernard
> 
> On Wed, Oct 21, 2020 at 4:33 PM Graham Samuel via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
> So far I have not found out how to invoke another app directly from inside
>> an iOS app, although I think I can invoke a browser using a URL. Perhaps
>> this is easier than I thought. Will report.
>> 
>> Graham
>> 
>> 
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC iOS Command 'mergPopActivity'

2020-10-21 Thread Bernard Devlin via use-livecode
Hi Graham

I wondered if this information is of use.  URL calls are not limited to
"http://;.

Having a LC app respond to a URL call:
http://lessons.livecode.com/m/4069/l/58672-using-custom-url-schemes

Apps and their URL schemas:
https://ios.gadgethacks.com/news/always-updated-list-ios-app-url-scheme-names-0184033/

Regards
Bernard

On Wed, Oct 21, 2020 at 4:33 PM Graham Samuel via use-livecode <
use-livecode@lists.runrev.com> wrote:

So far I have not found out how to invoke another app directly from inside
> an iOS app, although I think I can invoke a browser using a URL. Perhaps
> this is easier than I thought. Will report.
>
> Graham
>
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC iOS Command 'mergPopActivity'

2020-10-21 Thread Graham Samuel via use-livecode
A little progress report.

Elanor has come up with a solid answer to my original question, which was how 
to use the mergPopActivity command to break out of an iOS app sandbox by 
offering a file to the external world (such as the “Files” folder) on iOS 
systems. Basically, if you put a file in say the documents folder within your 
app and make a path tPath to it, then if the file’s name is in tFileName,
   mergPopActivity tFileName,,("file:" & tPath)

will open the model window and allow the user to put the file into “Files” 
folder, email it etc

So far I have not found out how to invoke another app directly from inside an 
iOS app, although I think I can invoke a browser using a URL. Perhaps this is 
easier than I thought. Will report.

Graham



> On 19 Oct 2020, at 11:14, Graham Samuel via use-livecode 
>  wrote:
> 
> Thanks very much for that. Sadly on a first look, in this particular case 
> there is little or no additional detail about the command. Nevertheless I 
> think there should be a link to the Merg web site in the LC Dictionary itself.
> 
> I rely heavily on the Dictionary, and only venture elsewhere when I am 
> completely foxed, as with iOS Deployment, for me a nightmare compared with 
> simply coding and debugging.
> 
> It is also true that the Simulator is very limited, in particular in showing 
> what’s happening when things go wrong (silent failure being a factor which 
> has bitten me several times). Under the Simulator, my GPS-related app can 
> only use a couple of limited examples built in to Xcode.
> 
> Probably there is a way to roll your own, but only in the monstrous xCode 
> universe, so very different from the familiar environment of LC. I am really 
> too old to start learning all that stuff. Apart though from my own bruised 
> ego, there is the issue of one of the key USPs of LC - simplicity - being 
> damaged by the difficulty of deployment. I’m ranting, I suppose… will study 
> the Merg info, but sadly still need Elanor to ride to the rescue!
> 
> Graham
> 
>> On 19 Oct 2020, at 03:23, Andrew at MidWest Coast Media 
>>  wrote:
>> 
>> The limited documentation is at http://mergext.com/home/mergpop/ 
>> <http://mergext.com/home/mergpop/>
>> Glad to hear that Elanor might be working on some more documentation. This 
>> feature (like push notifications and mobile camera) are difficult to test 
>> since the emulator either doesn’t work or has extremely limited 
>> functionality.
>> 
>> I found this code snippet in an old project where I was taking a screenshot 
>> of part of the screen and trying to share to Facebook or Twitter.
>> 
>> export snapshot from rect tExportRect of this card to file tFilePath as PNG
>> 
>> mergPopActivity "Indiana On Tap just hooked me up!",tFilePath,”"
>> 
>> 
>> —Andrew Bell
>> 
>> 
>>> 
>>> Message: 13
>>> Date: Sun, 18 Oct 2020 12:58:50 +0200
>>> From: Graham Samuel mailto:livf...@mac.com>>
>>> To: How to use LiveCode >> <mailto:use-livecode@lists.runrev.com>>
>>> Subject: LC iOS Command 'mergPopActivity' [was Re: The iOS "Files"
>>> folder]
>>> Message-ID: <769b3120-fcf5-4ecb-9683-ac0a303e2...@mac.com 
>>> <mailto:769b3120-fcf5-4ecb-9683-ac0a303e2...@mac.com>>
>>> Content-Type: text/plain;   charset=utf-8
>>> 
>>> I have been trying to use this command, initially to allow an iOS app to 
>>> put something in the ?Files? folder on an iPhone, but I?m now more 
>>> interested in the whole idea of Activity Views and how to exploit them in 
>>> an iOS app. I believe that the LC ?mergPopActivity' command is a wrapper 
>>> for some function in the iOS native universe - connected with 
>>> ?UIActivityViewController', but so far I haven?t worked out which one, 
>>> since I don?t really understand much of Apple?s iOS Developer documentation 
>>> (I always hope that using LC removes the need to do so!).
>>> 
>>> Elanor Buchanan of the mother ship has been extremely helpful about this, 
>>> and has said she hopes to improve the almost non-existent documentation of 
>>> this command, but meanwhile I?m interested if anyone on this list has any 
>>> insights, as I?m quite stuck and don?t want to bug Elanor too much.
>>> 
>>> When you invoke the ?mergPopActivity' command in an LC script, it opens a 
>>> modal window which gives a gateway into services available on your device, 
>>> like email, printing, saving to ?Files?, sending to social media etc - it 
>>> depends on what your device is capable of, and the apps it ha

Re: LC iOS Command 'mergPopActivity'

2020-10-19 Thread Andreas Bergendal via use-livecode
Graham wrote:
”[…] iOS Deployment, for me a nightmare compared with simply coding and 
debugging.”

Indeed - I know the feeling, as do many of us, I believe.

I wise man (Richard Gaskin actually) once said:
”Mobile development is like building a ship in a bottle.”

I find that a very apt and accurate parable (and I dare to say that even 
though, admittedly, I have no actual experience in bottled ship building). :)
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC iOS Command 'mergPopActivity'

2020-10-19 Thread Graham Samuel via use-livecode
Thanks very much for that. Sadly on a first look, in this particular case there 
is little or no additional detail about the command. Nevertheless I think there 
should be a link to the Merg web site in the LC Dictionary itself.

I rely heavily on the Dictionary, and only venture elsewhere when I am 
completely foxed, as with iOS Deployment, for me a nightmare compared with 
simply coding and debugging.

It is also true that the Simulator is very limited, in particular in showing 
what’s happening when things go wrong (silent failure being a factor which has 
bitten me several times). Under the Simulator, my GPS-related app can only use 
a couple of limited examples built in to Xcode.

Probably there is a way to roll your own, but only in the monstrous xCode 
universe, so very different from the familiar environment of LC. I am really 
too old to start learning all that stuff. Apart though from my own bruised ego, 
there is the issue of one of the key USPs of LC - simplicity - being damaged by 
the difficulty of deployment. I’m ranting, I suppose… will study the Merg info, 
but sadly still need Elanor to ride to the rescue!

Graham

> On 19 Oct 2020, at 03:23, Andrew at MidWest Coast Media 
>  wrote:
> 
> The limited documentation is at http://mergext.com/home/mergpop/ 
> <http://mergext.com/home/mergpop/>
> Glad to hear that Elanor might be working on some more documentation. This 
> feature (like push notifications and mobile camera) are difficult to test 
> since the emulator either doesn’t work or has extremely limited functionality.
> 
> I found this code snippet in an old project where I was taking a screenshot 
> of part of the screen and trying to share to Facebook or Twitter.
> 
> export snapshot from rect tExportRect of this card to file tFilePath as PNG
> 
> mergPopActivity "Indiana On Tap just hooked me up!",tFilePath,”"
> 
> 
> —Andrew Bell
> 
> 
>> 
>> Message: 13
>> Date: Sun, 18 Oct 2020 12:58:50 +0200
>> From: Graham Samuel mailto:livf...@mac.com>>
>> To: How to use LiveCode > <mailto:use-livecode@lists.runrev.com>>
>> Subject: LC iOS Command 'mergPopActivity' [was Re: The iOS "Files"
>>  folder]
>> Message-ID: <769b3120-fcf5-4ecb-9683-ac0a303e2...@mac.com 
>> <mailto:769b3120-fcf5-4ecb-9683-ac0a303e2...@mac.com>>
>> Content-Type: text/plain;charset=utf-8
>> 
>> I have been trying to use this command, initially to allow an iOS app to put 
>> something in the ?Files? folder on an iPhone, but I?m now more interested in 
>> the whole idea of Activity Views and how to exploit them in an iOS app. I 
>> believe that the LC ?mergPopActivity' command is a wrapper for some function 
>> in the iOS native universe - connected with ?UIActivityViewController', but 
>> so far I haven?t worked out which one, since I don?t really understand much 
>> of Apple?s iOS Developer documentation (I always hope that using LC removes 
>> the need to do so!).
>> 
>> Elanor Buchanan of the mother ship has been extremely helpful about this, 
>> and has said she hopes to improve the almost non-existent documentation of 
>> this command, but meanwhile I?m interested if anyone on this list has any 
>> insights, as I?m quite stuck and don?t want to bug Elanor too much.
>> 
>> When you invoke the ?mergPopActivity' command in an LC script, it opens a 
>> modal window which gives a gateway into services available on your device, 
>> like email, printing, saving to ?Files?, sending to social media etc - it 
>> depends on what your device is capable of, and the apps it has loaded; so I 
>> believe that the LC command essentially implements the ?sharing? activity in 
>> iOS, which is usually invoked via an icon consisting of a square with a 
>> North-pointing arrow in it. 
>> 
>> So far so good, but I?ve only been able to do one thing so far, which is to 
>> offer a text string originating in the app to these various services. So far 
>> I have not been able to find a way to offer a file (for example, a file 
>> containing a text rather than the text itself - easy to generate within an 
>> app, but no luck in offering to email it etc). There is a ?URL? parameter 
>> but I can?t work out what it does.
>> 
>> Anyone got any clues or shall I apologise (again) to Elanor and ask her for 
>> more help?
>> 
>> Graham
>> 
>> --

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC iOS Command 'mergPopActivity'

2020-10-18 Thread Andrew at MidWest Coast Media via use-livecode
The limited documentation is at http://mergext.com/home/mergpop/ 
<http://mergext.com/home/mergpop/>
Glad to hear that Elanor might be working on some more documentation. This 
feature (like push notifications and mobile camera) are difficult to test since 
the emulator either doesn’t work or has extremely limited functionality.

I found this code snippet in an old project where I was taking a screenshot of 
part of the screen and trying to share to Facebook or Twitter.

export snapshot from rect tExportRect of this card to file tFilePath as PNG

mergPopActivity "Indiana On Tap just hooked me up!",tFilePath,”"


—Andrew Bell


> 
> Message: 13
> Date: Sun, 18 Oct 2020 12:58:50 +0200
> From: Graham Samuel 
> To: How to use LiveCode 
> Subject: LC iOS Command 'mergPopActivity' [was Re: The iOS "Files"
>   folder]
> Message-ID: <769b3120-fcf5-4ecb-9683-ac0a303e2...@mac.com>
> Content-Type: text/plain; charset=utf-8
> 
> I have been trying to use this command, initially to allow an iOS app to put 
> something in the ?Files? folder on an iPhone, but I?m now more interested in 
> the whole idea of Activity Views and how to exploit them in an iOS app. I 
> believe that the LC ?mergPopActivity' command is a wrapper for some function 
> in the iOS native universe - connected with ?UIActivityViewController', but 
> so far I haven?t worked out which one, since I don?t really understand much 
> of Apple?s iOS Developer documentation (I always hope that using LC removes 
> the need to do so!).
> 
> Elanor Buchanan of the mother ship has been extremely helpful about this, and 
> has said she hopes to improve the almost non-existent documentation of this 
> command, but meanwhile I?m interested if anyone on this list has any 
> insights, as I?m quite stuck and don?t want to bug Elanor too much.
> 
> When you invoke the ?mergPopActivity' command in an LC script, it opens a 
> modal window which gives a gateway into services available on your device, 
> like email, printing, saving to ?Files?, sending to social media etc - it 
> depends on what your device is capable of, and the apps it has loaded; so I 
> believe that the LC command essentially implements the ?sharing? activity in 
> iOS, which is usually invoked via an icon consisting of a square with a 
> North-pointing arrow in it. 
> 
> So far so good, but I?ve only been able to do one thing so far, which is to 
> offer a text string originating in the app to these various services. So far 
> I have not been able to find a way to offer a file (for example, a file 
> containing a text rather than the text itself - easy to generate within an 
> app, but no luck in offering to email it etc). There is a ?URL? parameter but 
> I can?t work out what it does.
> 
> Anyone got any clues or shall I apologise (again) to Elanor and ask her for 
> more help?
> 
> Graham
> 
> --
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


LC iOS Command 'mergPopActivity' [was Re: The iOS "Files" folder]

2020-10-18 Thread Graham Samuel via use-livecode
I have been trying to use this command, initially to allow an iOS app to put 
something in the “Files” folder on an iPhone, but I’m now more interested in 
the whole idea of Activity Views and how to exploit them in an iOS app. I 
believe that the LC ‘mergPopActivity' command is a wrapper for some function in 
the iOS native universe - connected with ‘UIActivityViewController', but so far 
I haven’t worked out which one, since I don’t really understand much of Apple’s 
iOS Developer documentation (I always hope that using LC removes the need to do 
so!).

Elanor Buchanan of the mother ship has been extremely helpful about this, and 
has said she hopes to improve the almost non-existent documentation of this 
command, but meanwhile I’m interested if anyone on this list has any insights, 
as I’m quite stuck and don’t want to bug Elanor too much.

When you invoke the ‘mergPopActivity' command in an LC script, it opens a modal 
window which gives a gateway into services available on your device, like 
email, printing, saving to “Files”, sending to social media etc - it depends on 
what your device is capable of, and the apps it has loaded; so I believe that 
the LC command essentially implements the ‘sharing’ activity in iOS, which is 
usually invoked via an icon consisting of a square with a North-pointing arrow 
in it. 

So far so good, but I’ve only been able to do one thing so far, which is to 
offer a text string originating in the app to these various services. So far I 
have not been able to find a way to offer a file (for example, a file 
containing a text rather than the text itself - easy to generate within an app, 
but no luck in offering to email it etc). There is a ‘URL’ parameter but I 
can’t work out what it does.

Anyone got any clues or shall I apologise (again) to Elanor and ask her for 
more help?

Graham
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode