NativeScript / NativeScript/plugins

[@nativescript/social-share]unable to share image on Android in the demo

Open
#91 0 comments 0 reactions 0 assignees View on GitHub

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:

  1. Tool/Assets AndroidManifest.xml should update to use android:authorities="${applicationId}.provider"
  2. the android:name="android.support.v4.content.FileProvider" should be android:name="androidx.core.content.FileProvider" in package AnroidManifest.XML

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.