I have a win32 application, which works on image editing. I have to implement a Facebook share through OS for an image.
I have already investigated in UWP application. This can be done using dataTransferManager (https://learn.microsoft.com/en-us/uwp/api/windows.applicationmodel.datatransfer.datatransfermanager).
It shows a share panel with all the app which can accept the image. Facebook application is also shown in the share panel. After selecting Facebook, Facebook gets open and share dialog gets open inside Facebook with the image.
I have found code which can be used for sharing using WRL (https://github.com/arunjeetsingh/Build2015/tree/master/Win32ShareSourceSamples/Win32_Share_Desktop) but they have not added an image in dataTransferManager so the app like Facebook is not shown in the share panel. I didn't have a clear understanding of how to add an image in dataTransferManager using WRL.
I have two question:
Is image sharing can be done in a win32 app (classic) using share panel and dataTransferManager?
Can I get some helpful articles or any Github repository where it is actually done?
Now I'm able to integrate the OS share panel in win32.
code can be found here:
https://github.com/vivek0739/Build2015/tree/master/Win32ShareSourceSamples/Win32_Share_Desktop
I have used WRL and COMPtr.
Related
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.
My app setup is a basic new app with default viewController with the default classes for share extension on iOS 11.2.
The host AppDelegate class FinishedLaunching never gets called.
Just shows the launch screen and closes the app.
The sample Xamarin app provided also has the same issue.
Link to the sample app:
Share Extension sample
Any idea whats going wrong?
Do you want to open the app which you created with the share extension, when user clicks the share button to use this share extension? If so, this app should be called Containing App.
But unfortunately, there's no way to do this on iOS8.3+ except Today Extension. From this post we know that:
The intended approach for share extensions is that they handle all of
the necessary work themselves.
Also from the Apple documentation about extension:
An extension’s UI should be simple, restrained, and focused on
facilitating a single task.
Apple doesn't recommend us to open its containing app from extensions, actually it avoids that. If you want to retrieve data in containing app, you can set up an app group so that data can be shared between these two apps.
I'm building an app, and I was curious if there's a way to open the app when you're on the website through the iOS Safari extension. So, if I'm on a post I'd tap the app icon in the share sheet and I'd pass that to the app to load the post in the app.
I know the Bing app can translate the current website and inject directly into the DOM, so I was wondering what custom logic you can implement.
There's really no way to open the app from this kind of extension. Extensions can't access [UIApplication sharedApplication], so they can't call openURL:. There's an openURL:completionHandler: method on NSExtensionContext, but it only works in "today" extensions. Share extensions can display a fully custom UI and can save data that's available to their containing app, but they can't actually open that app.
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...
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