Search Unity

Share without the dialog

Discussion in 'Unity Everyplay' started by arikm, Apr 14, 2016.

  1. arikm

    arikm

    Joined:
    Oct 27, 2013
    Posts:
    9
    Can I Share/Upload a video without opening the Share Dialog on Android?
    I've found an undocumented function Everyplay.MakeRequest which might be helpful.

    Thanks.
     
  2. ullatussimo

    ullatussimo

    Unity Technologies

    Joined:
    Jun 16, 2015
    Posts:
    108
    Hello @arikm ,

    Thanks for reaching out!

    Sharing without opening the Share Dialog is not possible by design.
    We require user interaction in order to prevent sharing videos unintentionally.

    Hope this answers your question.

    Cheers,
    Simo
     
  3. krisventure

    krisventure

    Joined:
    Mar 24, 2016
    Posts:
    118
    @ullatussimo My problem is that I want to share screenshots on user's Facebook, when he decides, from within my Gear VR (virtual reality) game. Facebook SDK for Unity doesn't take care of the stereoscopic image, the dialog appears out of view, not fit for VR, and even if it appeared correctly, there would be no way to interact with it. In my game I've already showed the image to the user and asked double confirmation if he wants to post it, so I would just need to share it now without the dialog blocking the process (and the view).

    Note: I don't know of another way to share a screenshot from inside VR. HttpMethod.POST with FB.API will only upload the picture but it's not yet visible to the friends of the user. I need to share the URL of the uploaded screenshot with FB.FeedShare.