-
Notifications
You must be signed in to change notification settings - Fork 966
Android: can't share video to Instagram Story #1243
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
Comments
I haven't tried but try changing
by
|
Sorry, it's a typo. I'll fix initial post. Thanks for your reply. |
I've created a PR for backgroundVideo on Android. You can check the fix and usage here. |
@KostiantynSosonnyi can you check if #1248 fix this? |
@GoktuqCan Yes! That works for me, thank you very much, you are a lifesaver! @MateusAndrade Yes, the fix works for me. I'm using the method suggested by @GoktuqCan in his PR so there is no need for a |
Still facing this error. Any solution? |
@davidwinograd1 , I see you're always active in all the issues, lol. In my opinion, if it's working on iOS but not on Android, it might be because the Instagram app doesn't open as we discussed. On Android, the app needs to recognize the existence of a potential Instagram app package beforehand; otherwise, it can't open it immediately. What I recommend doing is double-checking if the app opens immediately. If it doesn't, it doesn't make sense to look for a solution for sharing Instagram videos if it can't automatically share stories! |
@Giasinit |
@davidwinograd1 ok, i understood, what about instagram story? is it open app automatically? or you need to choose instagram icon app? |
@Giasinit |
|
okok.. what about just a photo? not video. it is work with photos sharing stories?? |
I haven't tried with a photo because it's not needed for the use-case of my app. Is it necessary to try out to give you enough info to help diagnose the problem? I can do that now... |
@davidwinograd1 you MUST try it, the library I think focused on sharing images in stories, then in videos. but if it doesn't work in images first, it is unlikely to work in videos! |
@davidwinograd1 if it doesn't even open the app for you, then it's the problem I told you about. but it seems impossible that it doesn't work. |
@Giasinit should the video be converted to base64? right now it is not for me. I'm in USA.... And based on documentation, stickerImage does not seem to be required. |
is there any case of INSTAGRAM_STORIES working for any Android user? |
@davidwinograd1 i'm pretty sure that you, if you do "npx expo prebuild --platform android", and go to the AndroidManifest.xml, you won't find |
![]() yes, I do have instagram in my AndroidManifest.xml @Giasinit |
@davidwinograd1 if it automatically gave you that, then that's very strange! What do you use to build the application? |
Uh oh!
There was an error while loading. Please reload this page.
Precondition
I found a way to provide images and videos to Instagram stories builder using
base64
encoding (for Android only because for iOS it works fine just with file path or URL). Image publishing works well but it is impossible to publish a video using this method.Android code example:
Steps to reproduce
base64
encoded video to Instagram Story using react-native-shareExpected behaviour
Video is published properly
Actual behaviour
Video fails to be uploaded
Also, the error shows up when trying to upload the story with provided video from the stories builder
Environment
react-native-share
Version: 7.6.4
Summary
I'm not sure I'm doing it the right way though. Please let me know if there is a better way to share videos to Instagram Stories from an Android device.
Edit
Fixed typo
The text was updated successfully, but these errors were encountered: