NativeScript / NativeScript/plugins
[@nativescript/social-share]unable to share image on Android in the demo
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 206
- Forks
- 123
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 1
Description
The issue is that the FilterProvider path in Tool/Assets is android:authorities="${applicationId}.fileprovider" code
it does not match the one defined in the package android:authorities="${applicationId}.provider" code
In the source code, it use Application.android.nativeApp.getPackageName() code ,
I think:
- Tool/Assets AndroidManifest.xml should update to use
android:authorities="${applicationId}.provider" - the
android:name="android.support.v4.content.FileProvider"should beandroid:name="androidx.core.content.FileProvider"in package AnroidManifest.XML
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with tools/assets/App_Resources/Android/src/main/AndroidManifest.xml, packages/social-share/platforms/android/AndroidManifest.xml, and packages/social-share/index.android.ts, using the linked lines to compare the FileProvider authority and class. Done means the demo and package use matching provider configuration and the Android share-image flow works with the AndroidX provider.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100