You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2017/03/13 23:12:41 UTC

[jira] [Closed] (CB-12567) Can not download an .apk from a URL and install in one process

     [ https://issues.apache.org/jira/browse/CB-12567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jcesarmobile closed CB-12567.
-----------------------------
    Resolution: Not A Problem
      Assignee: jcesarmobile

This is not a problem, the file transfer plugin is to upload/download files internal to the app, it doesn't know what the file is and what to do with it after it's downloaded, that's up to the developer.

If you want to download and install an .apk, you can probably use another plugin that download files using the native download mechanism. I think it exists, but if doesn't, you can create it with the code you used on your other app

> Can not download an .apk from a URL and install in one process
> --------------------------------------------------------------
>
>                 Key: CB-12567
>                 URL: https://issues.apache.org/jira/browse/CB-12567
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File, Plugin File Transfer
>         Environment: Android >= 4.4.2, also assuming iOS, but not verified
>            Reporter: Kyle Slack
>            Assignee: jcesarmobile
>            Priority: Critical
>              Labels: features
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Using your documentation and online examples we can not properly download an .apk file from our own servers on device, once this file is downloaded we would then want to have the system handle opening and starting the installation process. We were hoping to have this handled all in one simple button click in the settings as a sort of Check for and Apply updates if a newer version of the app is pushed out. We are handling this in the original version of this application via native code for Android and would like to replicate the functionality in this newer HTML 5 / Phonegap build. All attempts thus far have failed. I have also read about ways to make an OTA update part of the iOS build as well with our Apple Enterprise License however we have not attempted this yet as our attempts with Android and the .apk has failed thus far.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org