No Activity found to handle Intent com.instagram.share.ADD_TO_STORY

前端 未结 2 1415
滥情空心
滥情空心 2021-02-20 10:46

In our React Native app, we\'re trying to have our users share specific images straight to either feed or story depending on a selection within our view/component.

When

相关标签:
2条回答
  • 2021-02-20 11:17

    This is probably happening because the activity with the action com.instagram.share.ADD_TO_STORY has android:enabled="false" in Instagram manifest. The com.instagram.share.ADD_TO_FEED action activity does not have this.

    You can see that sharing to the Story is also not available if you try to share an image from the gallery.

    The solution is simple: you need to restart Instagram after you have logged in. Then it will become available. This is probably an Instagram precaution against showing multiple Instagram actions in app chooser if user actually does not use Instagram.


    Now this becomes quite funny:

    our other test devices all have that error pop up

    ..it happens because when you try it on another device, you just install Instagram, log into your testing account and start trying .. and it never works because you first need to restart the Instagram app! :)

    0 讨论(0)
  • 2021-02-20 11:18

    For us it was the "type", it seems "image/*" isn't allowed.

    Using "video/mp4" worked!

    0 讨论(0)
提交回复
热议问题