Coder Social home page Coder Social logo

Comments (7)

soupslurpr avatar soupslurpr commented on August 22, 2024

Could you send me a screenshot of the menu it doesn't appear in? It does support setting it as the default app for opening .md files.

from beautyxt.

gasparzuker avatar gasparzuker commented on August 22, 2024

The files app opens the .md file automatically with the app, but when I try to open a file from whatsapp it doesn't works
Screenshot_20240627_104741_Android System

from beautyxt.

soupslurpr avatar soupslurpr commented on August 22, 2024

Its likely a WhatsApp issue. You can try installing this app https://github.com/MuntashirAkon/AppManager/releases/download/v3.1.6/AppManager_v3.1.6.apk and opening the file with it and sending a screenshot of the result to see what WhatsApp is putting in the intent.

from beautyxt.

gasparzuker avatar gasparzuker commented on August 22, 2024

URI intent://com.whatsapp.provider.media/item/89b4e0a9-e8d4-4ecf-841c-51ae0c63aafc#Intent;scheme=content;type=application/octet-stream;launchFlags=0x3000001;end

VERSION 1
ACTION android.intent.action.VIEW
DATA content://com.whatsapp.provider.media/item/89b4e0a9-e8d4-4ecf-841c-51ae0c63aafc
TYPE application/octet-stream
FLAGS 0x3000001

MATCHING ACTIVITIES 12
0 LABEL Billetera de Google
NAME com.google.android.gms.pay.deeplink.AliasSavePkPassActivity
PACKAGE com.google.android.gms
1 LABEL AnkiDroid
NAME com.ichi2.anki.IntentHandler
PACKAGE com.ichi2.anki
2 LABEL Reddit
NAME com.reddit.vault.feature.cloudbackup.restore.RedditVaultFileActivity
PACKAGE com.reddit.frontpage
3 LABEL Rutas
NAME com.samsung.android.app.shealth.tracker.sport.route.view.TrackerSportRouteCardListActivity
PACKAGE com.sec.android.app.shealth
4 LABEL Escáner
NAME io.github.muntashirakon.AppManager.scanner.ScannerActivity
PACKAGE io.github.muntashirakon.AppManager
5 LABEL Explorar
NAME io.github.muntashirakon.AppManager.apk.explorer.AppExplorerActivity
PACKAGE io.github.muntashirakon.AppManager
6 LABEL Información de la aplicación
NAME io.github.muntashirakon.AppManager.details.AppInfoActivity
PACKAGE io.github.muntashirakon.AppManager
7 LABEL Visor de manifiestos
NAME io.github.muntashirakon.AppManager.details.manifest.ManifestViewerActivity
PACKAGE io.github.muntashirakon.AppManager
8 LABEL Instalar
NAME io.github.muntashirakon.AppManager.apk.installer.PackageInstallerActivity
PACKAGE io.github.muntashirakon.AppManager
9 LABEL Interceptador
NAME io.github.muntashirakon.AppManager.intercept.ActivityInterceptor
PACKAGE io.github.muntashirakon.AppManager
10 LABEL Keepass2Android
NAME crc64dd09b2a2e58bb27d.SelectCurrentDbActivity
PACKAGE keepass2android.keepass2android
11 LABEL Daylio
NAME net.daylio.activities.BackupAdvancedActivity
PACKAGE net.daylio

from beautyxt.

soupslurpr avatar soupslurpr commented on August 22, 2024

As you can see, WhatsApp is setting the type as application/octet-stream in the intent. The correct type for Markdown is text/markdown.

from beautyxt.

soupslurpr avatar soupslurpr commented on August 22, 2024

application/octet-stream is the MIME type for arbitrary binary data.

"Generic binary data (or binary data whose true type is unknown) is application/octet-stream."
https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types

from beautyxt.

gasparzuker avatar gasparzuker commented on August 22, 2024

Thank you!

from beautyxt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.