There has to be a way to trigger an install from the .apk and .ipa files 
within codenameone.

Using Display.getInstance().execute(???) what process or browser or app can 
I execute and have it point to the .apk or .ipa file?

The devices download the app and store them in the downloads directory, If 
I browse that directory I can tap the .apk or .iap file and it will install.

I want to do this programmatically.

How can my app save a file on the devices downloads directory?

Regards.


On Friday, July 24, 2020 at 12:59:57 AM UTC-4, Shai Almog wrote:
>
> As I said we don't download. We call the URL on the web and the native 
> download sequence performs the actual download process. The execute method 
> accepts an https URL in our servers. 
>
> Look at the result of our iOS builds in the browser and inspect the code. 
> It's an HTML page that points at an XML file that's the manifest.
>
> On Thursday, July 23, 2020 at 3:09:37 PM UTC+3 [email protected] 
> wrote:
>
>> You mentioned pointing the execute process to a manifest, how does this 
>> work?
>>
>> Curious, when an .apk file exists in the devices download directory, from 
>> a file browser, we can click on it and it installs.
>>
>> On Thursday, July 23, 2020 at 7:06:15 AM UTC-4, Mark Bolduc wrote:
>>>
>>> Thanks, I have downloaded the .apk file to the mobile device and did 
>>> call:
>>>
>>> Display.getInstance().execute(ApplicationBinariesDownloadPath + 
>>> fileName, e -> {
>>>                 System.out.println("saveAndInstallA3MobileApp Complete");
>>>             });
>>>
>>> Can you provide the code syntax to install the .apk or .ipa file that is 
>>> stored on the mobile device?
>>>
>>> BTW: I have no intention of publishing my apps at this stage.
>>>
>>> Also, Google made life a lot more complex by requiring a privacy policy 
>>> be hosted if you access things like camera etc.
>>>
>>> On Wednesday, July 22, 2020 at 10:53:59 PM UTC-4, Shai Almog wrote:
>>>>
>>>> We don't download the files. We launch an external download process 
>>>> using execute(url). We also don't point at the IPA but rather at a 
>>>> manifest.
>>>> Regardless Apple won't approve your app if you do that. Which is why 
>>>> Codename One Build only works as a web app for iOS which IMO is pretty 
>>>> stupid.
>>>>
>>>> On Wednesday, July 22, 2020 at 8:27:27 PM UTC+3 [email protected] 
>>>> wrote:
>>>>
>>>>> It sound like you've stored them on the downloads directory of your 
>>>>> PC.  You need to download them
>>>>> directly onto your mobile devices, which ought to trigger the 
>>>>> installation.
>>>>>
>>>>>

-- 
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/748329d4-d1a5-4f28-85f0-e6cb51451799o%40googlegroups.com.

Reply via email to