How to access Windows Phone folders from a Gmail Wrapper App - webview

I have created a Gmail Wrapper Windows Phone 8.1 (WinRT) application using Webview. When I try to compose an Email and try to add attachments, file picker is not displayed and nothing happens.
However when I use the Internet Explorer and login to the same Gmail account and click on Attach, the file picker is shown with different options to choose the attachment from.
I have enabled the required capabilities in App Manifest, however the file picker is not shown in the Wrapper application.
Any help or pointers would be appreciated.

The hosted browser (WebView) cannot show the native file picker. You'd need to proxy the request somehow and show the picker from C# for example. But, as you don't own the gmail source code, making the proper surgical changes would be difficult (and subject to be changed).

Related

Open linked XLSM file in Excel app on iOS

My goal is to link an Excel macro file from a web app. When clicked, it should be opened in the already installed Microsoft Office Excel app. Target devices are iPads and iPhones running iOS 11 and above.
What I have tried so far is to link the file using the schema:
ms-excel:ofe|u|https://myserver.com/somedirectory/myfile.xlsm, so no passback protocol or document context defined. When I click the link the Excel app opens but then displays a message that it is not possible in this version of office to open a file from this server. Manual I have used: https://learn.microsoft.com/en-us/office/client-developer/integration/integrate-with-office-from-ios-applications
So I did a research and found that it might be one of the following reasons:
URL is not encoded: I therefore tried to encode only the part after the |u| marker and also the full string. Neither of them worked.
Only links to SharePoint and OneDrive are supported: Hosted an Excel file on my OneDrive account and tried the public share link. This worked, however, the file was not opened in the installed Excel app on the device but in the online Excel editor inside Safari browser.
My conclusion is that the URL was formatted properly but Excel really does NOT allow any files loaded from own servers / other servers than OneDrive or SharePoint.
Can anyone confirm this for sure? Or is there a way how I can open an Excel file from an own server using the installed Excel app on my iOS device? Maybe there is a solution to somehow load the external file to OneDrive and then open it in the app, like https://onedrive.com/loadFile?url=https://myserver.com/somedirectory/myfile.xlsm?
Thank you in advance!
The URL scheme linked in the document only works for files hosted in FileShare or OneDrive. No other cloud services or local files.
See https://stackoverflow.com/a/52223696/1049134.
I got it to work using a webdav server, so I think that is the solution if you don't want to use a cloud service. Opening the file directly on the webserver will not work.

How to Impliment Browse functionality in ios

I want to Implement Browse functionality in my Ipad App.
Actually My requirement is,When i chick on button need to open the all document are existed in device same like as "widows my computer".After Browsing that document,Select any document and I need to Upload the selected document to server.
You only have access to the "sandbox" of your application. It is by default an empty folder. It is called the application documents folder (see here how to get it). Unfortunately, unless you have a jailbroken phone, you have (mostly) no access to other folders.
If you populate this folder with files you can certainly show them in your UI and send them to a server.

Custom back button for Google Chrome

I've noticed in the latest iPhone Gmail app, that if I tap a link (and if I have the Google Chrome iPhone app installed) it opens up Google Chrome, and changes the back button in Chrome to show it going back to "Gmail"
I was wondering if anyone has managed to find a way to get this to work with their own apps, or if it's a private Google API?
I've tried Google's OpenInChromeController (https://developers.google.com/chrome/mobile/docs/ios-links) though that only seems to provide helper methods to open Chrome, and not change the back button
Google Chrome uses the x-callback-url scheme to create this type of behavior.
One example is something like this:
googlechrome-x-callback://x-callback-url/open/?x-source=MyApp&x-success=com.myapp.callback%3A%2F%2F&url=http%3A%2F%2Fwww.google.com
You can customize it to have a different response for a success or failure, and define whether Chrome will open the link in a new tab. There's more information available lower in the document that you linked to.

BlackBerry default app for Epub file type

I'm developing an Epub reader on BlackBerry java platform, and I'd like to know if there is a possible way to register my application as the default reader for Epub files, like if a clicked on an attached Epub file within an email, or a link to that file in browser, or even if I clicked on it while browsing all files locally, am I going so far with this? is it possible?
Try using the Content Handler APIs, which allow you to register an app to handle files of a particular extension and content type (e.g. .epub and type application/epub+zip).
See this BlackBerry reference document for more information
If you install the full SDK, you should also find the CHAPIdemo sample code under samples/com/rim/samples/device/chapidemo.

Putting a url in an email that opens an application on iPhone or iPad

I know what code is needed to cause my iOS app to open a link in Safari. But I am looking at how I might accomplish something more in the reverse direction.
I can send email from my app. I would like to include a link in the email, that, when clicked on within the email on my iPhone or iPad, will open my app and perform an action based on the property values passed in the link. (The link would refer to a record in the database of my app, so the app can provide a view content based on that record.)
Another example I have seen is the special purpose URL used in the manifest file that loads ad hoc distributions over the air.
I see something like this when places and dates are automatically converted to links that open the map or calendar applications.
Does anyone have an idea how I can do this?
You need to implement a custom URL scheme.

Resources