branch.io sharesheet questions - unity3d

Im using branch.io's sdk for unity, im having 2 questions im hoping someone could answer:
1: Is it any way to restrict the share sheet from sharing to certain apps? for example some apps that doesn't handle links well and in special the sms service.
The reason we do not want the ability to send by sms is that the app needs permission to access the phone book and thus the google play service will need an "privacy policy" link.
2: If its not then i would like to know if you guys could lead me in the right direction when writing a privacy policy because i do not have any legal education and do not know how to wright it. Is it sufficient to state that we are using your sdk? The demands are things like "you should see to it that the code is secure and encrypted" (Something like that) though i'm using your sdk and do not have a clue about how it works.
Thanks!

There is no way to change the list of apps from the share sheet in Branch's Unity SDK. Although Branch does have an end point to exclude certain apps using the Android SDK.
You will need to export your Unity 3D project to Android Studio. Once you successfully export the project, you can use the Branch Android SDK endpoint to exclude any app by providing the Package name of the App.
This is the sample code to update your Share Sheet:
//define the share sheet style
ShareSheetStyle shareSheetStyle = new ShareSheetStyle(context, shareTitle, shareDescription)
.setCopyUrlStyle(getResources().getDrawable(android.R.drawable.ic_menu_send), "Copy this URl", "Link added to 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 from the Share Sheet
shareSheetStyle.excludeFromShareSheet("com.whatsapp");
//to exclude android messages app from the Share Sheet
shareSheetStyle.excludeFromShareSheet("com.google.android.apps.messaging");

Related

How to link to page inside a flutter app?

When I click on the link I created on the website; If the application is installed, I want it to open and go to the page I want in the application, if the application is not installed, I want it to go to the app store or play store. I searched a lot but couldn't find it. Can you help me.
enter image description here
The solution for you would be deep linking or custom scheme. Them are practically, the same thing. Here you can find a link how to use them:
https://medium.com/flutter-community/deep-links-and-flutter-applications-how-to-handle-them-properly-8c9865af9283
This is exactly what Firebase Dynamic links was created for.
You can configure urls to redirect based on whether the user has the app installed or not.
https://firebase.google.com/docs/dynamic-links

Support custom file extension in a flutter app ( Open file with extension .abc in flutter )

So I am exporting a file created in my application with extension .abc
Now, if the user shares the file on whatsapp or telegram or any other platform and when other user tries to open the file, the "open with" dialog should appear with my application in the list.
I have tried following approach which does not work plus it is only for Android and I am looking for multi-platform solution to this.
Is it possible to register a Flutter app as an Android Intent Filter and to handle Incoming Intents?
I was able to compile the app using above method but could not populate "Open with" dialog with my app's name
Thank you for your time.
EDIT 1:
So I have successfully added this functionality for android but I am still trying to add the same functionality for my iPhone users.
Can someone please help me with swift code part in iOS ??
I am not familiar with swift language but I want my users to be able to use same functionality on both platforms.
I have found a solution for iOS:
You can use the Uni Links package to get the notifications into your Flutter app.
You then need to manually add the file types in the Info.plist for the XCode project. You can find an explanation for example here.

How to display images and texts dynamically using logics with Swift?

I'm trying to build a sample app (using Swift 4), now I would like to add a function: To display images and labels dynamically.
For example: sometimes, I would like to display an image in the top of a ViewController, just like the following picture shows:
But sometimes, I would like the display the image in the bottom of the Summary label, or some other positions.
Is there any way to make it happen? And the most important is: There is no way to modify the codes, once the app submitted to App Store. So, the logic may be implemented from internet? I'm not sure about this. Thanks.
PS: I'm using AWS Mobile Hub (AWS S3, AWS Dynamodb) to retrieve images and items.
There are few options, check out rollout.io
You can create this screen in react-native and you can upload your .jsbandle on the server, so whenever you want to change this behavior just need to build your react-native project and replace the .jsbundle file on the server.
Look at this blog for detail.
https://medium.com/ios-os-x-development/so-you-want-to-dynamically-update-your-react-native-app-d1d88bf11ede
Note: Apple review team may reject your app.
Your app, extension, and/or linked framework appears to contain code designed explicitly with the capability to change your app’s behavior or functionality after App Review approval, which is not in compliance with section 3.3.2 of the Apple Developer Program License Agreement and App Store Review Guideline 2.5.2. This code, combined with a remote resource, can facilitate significant changes to your app’s behavior compared to when it was initially reviewed for the App Store. While you may not be using this functionality currently, it has the potential to load private frameworks, private methods, and enable future feature changes"

How to add MQA (Mobile Quality Assurance) to an existing MobileFirst hybrid app?

I need to add the MQA feedback tool to an existing hybrid app being develop with IBM MobileFirst.
Here is what I have done and what I need to do.
Done:
Downloaded the MQA sdk for MobileFirst JavaScript Hybrid SDK MFPComponent-JS-3.0.13
Created a Bluemix account and a MQA app
added IOS platform
Added MQA as an application component using Eclipse (not sure if this is the correct way to do it)
Creted a UI with a feedback form (rate experience, subject, comments, include my id in my feedback, submit button)
In this UI I created a toggle for enabling "Shake to see this screen".
Need help to:
check if the MQA library was added correctly. How can I test it?
How can I make the submit button click event send the feedback data (UI form) to the MQA server? (any source code please?) I need to see the data in the MQA manager site.
Thanks in advance
You need to first follow the provided Getting Started tutorials, which will guide you through setting up the SDK and making sure that MQA is properly working in the application, including example code.
After that, once you get it working, you can come back with concrete questions on things that do not work.
See here: https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-2/quality-assurance/native-ios/

Unity3d Facebook SDK: properties on iOS don't get published

we are working on share functionality for our unity game using the Facebook Unity SDK.
We are using FB.Feed for our post and share additional links at the end of the post using the 'properties' parameter and sending a Dictionary.
This works nicely on Android and for the webplayer but nothing is shown when using the iOS version which has the exact same codebase.
This seems to be a bug since the same happens using the interactive console example.
Can anyone confirm?
Is there an official forum for the FB Unity SDK? The beta goup on facebook seems to be dead.....
Help very appreciated.
Simon
We are deprecating the properties functionality. Just so you know, for your specific use case the properties are unnecessary. We will automatically send users to the Google Play store when they click your game's link on Android and the iTunes store when they click it on iOS.