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

Android ShareViaInstagram opens Send To Direct Message #1033

Open
jkufrin opened this issue Jun 13, 2019 · 8 comments
Open

Android ShareViaInstagram opens Send To Direct Message #1033

jkufrin opened this issue Jun 13, 2019 · 8 comments

Comments

@jkufrin
Copy link

jkufrin commented Jun 13, 2019

iOS opens the main dialog asking to share Story/Feed and successfully posts. Android 6 & 7 are both popping open straight to the Direct Message dialogs. It successfully posts the DM, but that's not what I want it to do. I can't seem to get to the Android regular sharing. I can't find any threads of anyone else having this issue. Any ideas?

cordova-android: 6.3.0
cordova-plugin-x-socialsharing: 5.2.1
ionic: 3.20.1
ionic-angular: 3.9.2
@ionic-native/social-sharing: 4.5.2

@SudeshRani
Copy link

Same problem I am facing

@IgneButene
Copy link

Same problem here.

1 similar comment
@dariobertini
Copy link

Same problem here.

@dejanmarkovic
Copy link

Same problem here. I would appreciate any kind of suggestion/advice.
Thanks in advance.

@jkufrin
Copy link
Author

jkufrin commented Aug 9, 2019

FYI. I never got around this. I had to upgrade the entire app to the latest Ionic starter and re-import all project files and plugins and make necessary updates along the way. It was a pain. The ShareViaInstagram works as expected now though. Good luck.

cordova-android: 7.1.4
cordova-plugin-x-socialsharing: 5.4.6
ionic: 5.2.0
ionic-angular: 4.6.0
@ionic-native/social-sharing: 5.8.0

@dejanmarkovic
Copy link

Thank you @jkufrin! We have lost our mind with debugging this.

@fventurini
Copy link

fventurini commented Aug 21, 2020

For me shareViaInstagram open up only direct message
Is there a way to open feed? Or to choose.

"@ionic-native/social-sharing": "^5.28.0"
"cordova-plugin-x-socialsharing": "^5.6.8"

Ionic:

Ionic CLI : 5.4.16 (C:\Users\effev\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.7.1
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.0.0, browser 5.0.4
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.2, (and 7 other plugins)

Utility:

cordova-res (update available: 0.15.1) : 0.6.0
native-run (update available: 1.0.0) : 0.2.8

System:

Android SDK Tools : 26.1.1 (C:\Users\effev\AppData\Local\Android\Sdk)
NodeJS : v10.15.3 (C:\Program Files\nodejs\node.exe)
npm : 6.14.5
OS : Windows 10

bennimmo added a commit to bennimmo/SocialSharing-PhoneGap-Plugin that referenced this issue Jan 18, 2021
This stops the direct activity sharing been selected on the android platform where instagram registers multiple activities as shown below:

- com.instagram.direct.share.handler.DirectExternalPhotoShareActivity
- com.instagram.share.handleractivity.ShareHandlerActivity
- com.instagram.share.handleractivity.StoryShareHandlerActivity

The story share handler is implied by passing multiple images through to the plugin.
@bennimmo
Copy link
Contributor

bennimmo commented Jan 18, 2021

See the commit and pull request for the solution to this problem. You should be able to remove the existing plugin with

cordova plugin remove cordova-plugin-x-socialsharing

and install this version with

cordova plugin add https://github.com/bennimmo/SocialSharing-PhoneGap-Plugin

bennimmo added a commit to bennimmo/SocialSharing-PhoneGap-Plugin that referenced this issue Jan 18, 2021
This stops the direct activity sharing been selected on the android platform where instagram registers multiple activities as shown below:

- com.instagram.direct.share.handler.DirectExternalPhotoShareActivity
- com.instagram.share.handleractivity.ShareHandlerActivity
- com.instagram.share.handleractivity.StoryShareHandlerActivity
- com.instagram.share.handleractivity.MultiStoryShareHandlerActivity
The story share handler is implied by passing multiple images through to the plugin.
EddyVerbruggen added a commit that referenced this issue Jan 18, 2021
Fixes for #1033 where instagram always goes to direct messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants