Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LinkedIn share does not work in the apps #90

Closed
sachin-arshna opened this issue Sep 25, 2023 · 3 comments
Closed

LinkedIn share does not work in the apps #90

sachin-arshna opened this issue Sep 25, 2023 · 3 comments
Assignees
Labels
bug Something isn't working as expected help wanted Extra attention is needed

Comments

@sachin-arshna
Copy link

sachin-arshna commented Sep 25, 2023

I integrated shareon.js (https://giddysouls.com/category/mushroom-supplements/mushroom-supplements.html) which works great for most except the LinkedIn button just takes me to the home page at LinkedIn. I noticed the same behaviour on the LinkedIn shareon.js home page button.

Update: Share seems to work fine on the desktop - creates a post in Linkedin in a browser tab. My issue above was observed on an Android phone with a Linkedin app installed. In which case, it opens the app but the share isn't present. Share works fine with WhatsApp, Reddit apps installed on the same phone.

@kytta
Copy link
Owner

kytta commented Sep 25, 2023

In browser, the share button for LinkedIn works only if you're already logged in to LinkedIn. When it comes to the phones, it's up to the app developer to include a share screen, and it seems like it doesn't :( I'll see if I can make this work, but don't expect much 😅

@kytta kytta changed the title Linkedin share does not work? LinkedIn share does not work in the apps Sep 25, 2023
@kytta kytta self-assigned this Sep 25, 2023
@kytta kytta added bug Something isn't working as expected help wanted Extra attention is needed labels Sep 25, 2023
@sachin-arshna
Copy link
Author

Thanks for looking into it.

@kytta
Copy link
Owner

kytta commented Nov 20, 2023

So, no good news. I've had a look at the LinkedIn app, and here's what I've found:

The LinkedIn app has a screen for sharing stuff; it's the one that you can access if you click "Share" from any other app and choose LinkedIn. Sadly, this one cannot be opened in any other way. There are deep link filters in the app, but they only work with profile pages and posts.

As such, the only way to make the LinkedIn button work with the LinkedIn app is to use the catch-all share button:

<div class="shareon">
  <a class="web-share">
</div>

The web-share button will only be shown on devices that support it (smartphones, Safari on macOS, and Microsoft Edge on Windows)

@kytta kytta closed this as not planned Won't fix, can't repro, duplicate, stale Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants