unity3d - branch.io sharesheet questions -


im using branch.io's sdk unity, im having 2 questions im hoping answer:

1: way restrict share sheet sharing apps? example apps doesn't handle links , in special sms service. reason not want ability send sms app needs permission access phone book , google play service need "privacy policy" link.

2: if not know if guys lead me in right direction when writing privacy policy because not have legal education , not know how wright it. sufficient state using sdk? demands things "you should see code secure , encrypted" (something that) though i'm using sdk , not have clue how works.

thanks!

there no way change list of apps share sheet in branch's unity sdk. although branch have end point exclude apps using android sdk.

you need export unity 3d project android studio. once export project, can use branch android sdk endpoint exclude app providing package name of app.

this sample code update share sheet:

//define share sheet style sharesheetstyle sharesheetstyle = new sharesheetstyle(context, sharetitle, sharedescription)  .setcopyurlstyle(getresources().getdrawable(android.r.drawable.ic_menu_send), "copy url", "link added clipboard")                     .setmoreoptionstyle(getresources().getdrawable(android.r.drawable.ic_menu_search), "show more")                     .addpreferredsharingoption(sharinghelper.share_with.facebook)                     .addpreferredsharingoption(sharinghelper.share_with.gmail)                     .addpreferredsharingoption(sharinghelper.share_with.twitter)                     .addpreferredsharingoption(sharinghelper.share_with.pinterest)                     .setasfullwidthstyle(true)                     .setsharingtitle("share with");  //to exclude whatsapp share sheet sharesheetstyle.excludefromsharesheet("com.whatsapp");  //to exclude android messages app share sheet sharesheetstyle.excludefromsharesheet("com.google.android.apps.messaging"); 

Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -