Download .apk file don't work

This topic contains 9 replies, has 2 voices, and was last updated by  Milind (CyberChimps Team) 10 months, 1 week ago.

  • Author
    Posts
  • #279638

    dinonik
    Participant

    I have WP site with Responsive theme from 2009 and all work just fine, now I try to add on page a small .apk file (android file) to be download and install on mobile phone when you visit my site from phone.
    But don’t work, I have try on another WP site with some other theme and all work, so conclusion is that is something with theme.
    I have add in wp-config.php:
    ==> define(‘ALLOW_UNFILTERED_UPLOADS’, true);

    And in function.php:
    add_filter(‘upload_mimes’, ‘acp_custom_mimes’);
    function acp_custom_mimes ( $existing_mimes=array() ) {
    // ‘ with mime type ‘application/vnd.android.package-archive
    $existing_mimes[‘apk’] = ‘application/vnd.android.package-archive‘;
    return $existing_mimes;
    }

    Still don’t work, I need help, any tips.
    Thanks
    (if is possible directly on mail: [email protected])

  • #279717

    Hi,

    Can you please share your site URL and let me know the version of the theme and WordPress you are using?

    Moreover, can you please try changing the theme? Try activating the default WordPress theme and check if you can download the .apk file.
    https://wordpress.org/themes/twentyseventeen/

    Try it and let me know the result.
    Thank you.

  • #279728

    dinonik
    Participant

    Hi
    this is a link, on the bottom is small android icon when you click you should download apk file
    http://www.frizerskistudiosandra.com/usluge-frizerski-studio-sandra/

    I also try with other theme, the same. I must be honest with you I didn’t since 2009 make upload of this theme because
    when you make upload always need to configure again all and I don’t like that so I just change number.
    Also I noticed on last version of this theme function.ini is bigger that mine, a lot bigger

  • #279730

    dinonik
    Participant

    OK, I install locally Wp and last theme responsive 3.7 and all work, so can you help because I would like without changing anything in theme to make work.
    Maybe when I reduce theme I delete something that I don’t need to delete, can you help with advice what first to try.

    thx

  • #279755

    dinonik
    Participant

    Hello
    I noticed that all crash when JS spinner start a lot of error, apk file is in side bar in widget I don’t know maybe
    is problem in widget.
    Any tips.

    thx

  • #279756

    dinonik
    Participant

    I just noticed if I put this .apk file in page.php like (KLIK) all work just fine.
    But, if I put in widget on side bar in Visual Editor:

    In this case don’t work, very strange.
    Any suggestion.

  • #279757

    dinonik
    Participant

    I resolve problem: inside link since I copy was left one class=””, and this class make problem.
    Now work all just fine, thanks for help.
    Btw, great template.

    Regards

  • #279771

    Hi,

    Ohh that’s great. Happy to know that the issue is resolved.
    If you have any more queries, feel free to raise it here.

    Thank you.

  • #279807

    dinonik
    Participant

    Thanks, very kind of you.

    Regards

  • #279862

    Hi,

    No problem :)

    Thank you.

You must be logged in to reply to this topic.