Open File From Text Message with Nativescript? - nativescript

In my nativescript iOS app, users will create a file, and then share the file via text message with other users. I'm using angular.
I expect that I can use the file system to create and save the file, and then use nativescript-share-file to open up the text message and attach the file.
BUT: how do I enable the recipient to tap on the file in the text message, and have that tap automatically open the app with the file there?
It's that piece I am not sure of: user taps on the file in the text message and this tap 1) opens the app, and 2) the app reads the file.
This is functionality a variety of apps have. For example, if you send someone a youtube video via text, they can tap on the message and have the video open in youtube. Same with sending people podcasts via iOS's podcast app.
How can I enable this in my nativescript iOS app?
EDIT 1: Note that, while sms messages have strict limits, iphone does allow you to attach files by using iMessage or (if iMessage is not available) MMS. So attaching and sending the file should not be a problem.
EDIT 2: the key is: how can I have my app open a file a user receives via text? The best way may be to include my app in iOS's "open in..." option, discussed here. But how do I do that in Nativescript?

Related

Is it possible to create a message extension that allows for picture upload and for mentioning users?

I'm currently trying to create a message extension for a Teams application and was wondering if it was possible to either mention users or upload pictures in the extension message. For the picture, I was wondering if there was a way to either upload an actual image file or at least paste an image into a text box. I was also wondering if it's possible to mention users in a text box or if it's possible to recreate the functionality similar to the 'Praise' app in Teams that has a dropdown search menu for all the users in the team. Thanks!
Yes, You can open a task module from message extension. Provide a field to upload custom image by user. On submit of task module you can display an adaptive card with the uploaded image.
Right now #mentioning a user is available in Adaptive card version 1.2 in developers preview mode.
So you can take user input in the task module and pass it to the adaptive card.
You can refer the post How to add a mention in Teams alongside an adaptive card using Bot Framework

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.

Reproducing Mac Mail / TextEdit interaction

TextEdit has this great treatment of messages dragged from the Mac Mail app — the subject line transfers as a hyperlink that when clicked opens the original message in Mail. Any thoughts how I could do the same in my app? Not having much luck with NSPasteboard; the data doesn't seem to transfer as NSURL's or NSString's. I don't think the data is totally obscure, though, as dragging a Mail message to Microsoft Word does transfer over a file URL, albeit one that doesn't open successfully.

WP7 Extras Menu, What is it for?

I'm trying to find out about the Extras menu on windows phone. Extras.xml. Here is what I've found (there isn't much out there)
Adding extras.xml to your app will put it into the 'extras menu'
Extras menu is available in your media library
you can send media to your app via extras menu
What else is this used for? Where else can it go? Can you use extras menu in your app or is it an OS only menu? Is it limited to media?
You can use Extras in order to further integrate your app into the OS. For example, a user can view a picture from the Pictures Hub. If your app uses the Extras file, then it'll appear as an option from within the Pictures Hub. The user can then tap on your app (from the picture's menu) and your app will launch, with the OS passing the picture to your app as a parameter. Your app reads in the image and performs some sort of function on it. Using the Extras file is very easy as demonstrated on this MSDN page.
The Mango update will further enhance this by providing the Extras menu from within Bing search results. The demo shown recently showed the user searching for a movie in Bing. Straight from the results, the user can launch the IMDB app (or any other app that uses Extras) and have the system automatically send in the details of the movie they searched for. Within the IMDB app, they could see trailers, info etc...

Mail Message Link Handling

I have written an AppleScript which when supplied with a Windows network link, will convert it to the correct smb:// equivalent for the server in our office, mount the network drive, and open the requested folder in Finder.
I have this built in an application which just takes a pasted network path. Ideally I need this to trigger on clicking a link in a Mail.app email message so that it can check if the link is in the correct format, and if so run the script and attempt to mount the drive and load the folder in Finder.
How would I go about doing this?
In order to do this I think you'd need to create a Cocoa application that was registered with OS X Launch Services as the default role handler for smb:// links.
I've written some stuff about how to do this on another question: How do you set your Cocoa application as the default web browser?
If there's a pure AppleScript solution or a way of only handling links within Mail.app I'm not aware of it.

Resources