Page 1 of 1

Intent filter for CSV

Posted: Thu Oct 08, 2020 10:21 pm
by kevinmcisaac

I want to register my android app to view a file when a user tries to open it.

According to this
https://stackoverflow.com/questions/320 ... in-the-dow
I need to add an intent-filter, where do I do this in appery? Any documentation on this.

<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:host="" />
<data android:scheme="content" />
<data android:mimeType="text/"/>
</intent-filter>


Re: Intent filter for CSV

Posted: Sat Oct 10, 2020 5:23 pm
by Serhii Kulibaba

Hello Kevin,

We don't have such a function by default. Please search online for an appropriate solution. E.g.: https://stackoverflow.com/questions/281 ... config-xml


Re: Intent filter for CSV

Posted: Sat Oct 10, 2020 10:16 pm
by kevinmcisaac

Serhii,
thank you for the advice. I'm assuming I need to add the proposed code for the intent-filter to the AndroidManifest.xml, is that correct?

I'm new to Appery, where in the product can I do that.


Re: Intent filter for CSV

Posted: Sun Oct 11, 2020 3:44 pm
by Serhii Kulibaba

You can add these changes to the file Cordova/config.xml

Please pay attention to this is something outside the scope (https://docs.appery.io/docs/general-support-policy) of our standard support. So we can't guarantee you the correct work of the app after these changes. Anyway you will be able to undo all of them