How to restrict the apps in the share dialog in Xamarin Forms? - xamarin

I can share some text or files with external apps with Xamarin.Essentials: Share Feature.
Well, can I restrict the apps shown in the popup to share? For example, can I set it to show gmail but not whatsapp in the popup?
I need this for both ios and android in the Xamarin.Forms app. How to handle it?
Thanks.

The Xamarin.Essentials: Share Feature only provide the the method to share the file or text for other applications. The system will detect the file type (MIME) and request a share. Each platform may only support specific file extensions.
Here is the Share Class API, you can refer to this.

Related

some of the iOS apps does not shows action extension feature in iOS8 devices

Basically when i do open in functionality in other apps basically it
will show tow options 1. open-in 2. extensions. But i am seeing some
of the apps not showing the other apps action extension feature. I do
not know how they are hiding it?. Or they doing something else to do
not show the other apps extensions other than iOS defaults action
extensions?.
Example:
YES: Mailbox, Dropbox, Box etc. - these app was able to show the other
apps action extension
NO: Evernote, Acompli, Zoho Docs - - these app does not shows the
other apps action extension.
Any idea? why evernote and Zoho not showing the other apps action extension feature?. Is there something they need to do on their side or i need to do on my side to make it show?.
Any help that might be really appreciated.
screenshots attached.
Action and Share extensions have an activation rule, which is stored as NSExtensionActivationRule in their Info.plist. These extensions only appear if the host app is sharing data that matches the activation rule. For example, if an app shares images and the extension can only handle text, the extension will not be displayed as an option in that app.

How to stop presenting share extension in "Open-In" options Menu View?

I am developing share extension for my app. In my share extension info.plist , i added NSExtensionActivationSupportsImageWithMaxCount activation rule.So i expected my app share extension will present in any image share from any apps.But my issue is my app share extension also presenting in apple's Open-In options menu view.Is there any way to stop presenting my app in Open-In menu?
Note: My app has supports Custom URI schemes for different type documents.

Can you open LinkedIn iOS 8 share extension?

With iOS 8 LinkedIn implemented Share Extension. I know there is no framework for sharing, but i was wondering if i can open the Share Extension from within the app but not from the QLPreviewController. We have created a custom share screen and for now we just open a web view.
Thank You;
The iOS 8 extensions cannot be presented in a custom share screen. You absolutely have to use UIActivity​View​Controller in order for the share/action extensions to appear.
For the linkedin extension to appear in your app, you have to:
Use UIActivitViewController to present the share sheet
and the users have to:
Open the share sheet
Select More
Enable (flip the switch to green) for the linkedin extension
Before iOS 11, you can create the SLComposeViewController like this
[SLComposeViewController composeViewControllerForServiceType:#"com.linkedin.LinkedIn.ShareExtension"];

How to create a custom app entry inside the Application Settings with Windows Phone SDK

Do you know if the Windows Phone SDK offers an API that allows to add a custom App entry inside the Application Settings page?
I would like to create a new entry "AppXYZ" that links the settings page of the application.
Is this view reserved just for "system" applications or could also be used to add a link to an external app's settings?
Although not well-known, there is a way to do that. In WMAppManifest.xml you can specify that your app belongs in HubType="268435456". That way, it will be integrated there. This is not an officially-supported approach and I am yet to see a third-party app approved in the Store that would handle this.
You can link to the settings page of your own application but not to the windows phone settings page you show us in the screenshot. Developers are only allowed to show some of these by using the corresponding URL schmemes.
Unfortuantely there is no possibility to integrate your app to the official settings hub as a third party developer. Adding HubType="268435456" in your WMAppManifest.xml file will prevent a successful sumbission.
Sorry for the bad news...

Open Windows Phone 7 App from URL

I need to launch my WP7 application from the phone's browser and pass some arguments. For example, the following url would be a link on an html page. Clicking the link would start my application. iPhone and Android both have these capabilites by the name of 'url schemes'.
appName://my.arguments.here
How can I accomplish this on WP7?
Thanks!
Unfortunately there is currently no support for "url schemes" or custom URL handlers that will allow you to handle these requests from within your application.
It is possible to integrate with the search application, which can provide deep linking into your application. It also appears that YouTube has some kind of way of doing it, as the mobile version of their site will jump to the app for playback of videos.
You should use the protocol activation feature of Windows Store apps - see http://msdn.microsoft.com/en-us/library/windows/apps/hh452686.aspx

Resources