lucasferreira / react-native-send-intent

React Native Android module to use Android's Intent actions for send text to shareable apps or make phone calls or opening third party apps
419 stars 159 forks source link

how to call custom action intent? ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION #150

Open carlosen14 opened 1 year ago

FrederickEngelhardt commented 1 year ago

Hello, natively this could be accomplished by extending a generic intent request. Example code

    val uri: Uri = Uri.parse("package:" + "com.filemonexample")
    val fileManagerIntent = Intent("android.settings.MANAGE_APP_ALL_FILES_ACCESS_PERMISSION", uri)
    startActivity(reactApplicationContext, fileManagerIntent, null)

Side note:

react-native@0.71.4 is missing this feature. However for Linking.sendIntent there is a open discussion here related to that issue.

Until that issue is resolved, we may want a PR (and new version) for this library.

FrederickEngelhardt commented 1 year ago

152 Should fix things.