Want to upload an image with Dialogflow and Google Actions - firebase-realtime-database

I have a Google Action that I can share the location with and ask for some information. In order to upload an image it has to link to a web app and then upload the image there. Then that image can be seen back in Google Assistant if I then open it up again, call up the Google Action and ask for it. Is there any way of upload an image in the Google Assistant to a database? (firebase)

Not directly, no. There is no API (yet) to get access to the camera on devices that have it. Your workaround is currently the most direct method we have.

Related

Can I integrate my app onto instagram and publish in the app store?

I'm currently working on an app that allows some feature to be displayed when a user clicks on another instagram user's pictures, ie, when the picture and the provision to comment on the comment section displays. This is a simple feature that in a way overlays over this page. M question is, does instagram or any other photo sharing app allow this?
Once the user downloads my app, he/she will be allowed to integrate my app with instagram and have this feature enabled.
Not sure I understand your question right or not. But there is no way to overlay your view to other application. There is a way to display part of your application in other application, which called extension but Instagram needs to design their application to add that feature which likely impossible.
Other way you can think of is checking if Instagram has API to see if a photo is liked/commented then you can response to that action.

Integrating Google Drive with iOS

I'm working on app in which I need to integrate with Google Drive for my iOS App.
So I started following Quick Start. Every thing worked perfectly fine and successfully able to get list of my file with the use of query in GTLQueryDrive class. But problem is that I am getting every thing for using query so for this there is no User Interface for Google Drive (like they can show all files with logos and we can get those file and some delegate may trigger as I also noticed in android integrated project). So
Is this possible that I Google drive give some default interface for listing files with actions available, instead of just using queries.
If possible then how can Integrate or some helping tutorial link.
Looking for help. Thanks.
Is this possible that I Google drive give some default interface for listing files with actions available, instead of just using queries?
It seems what you're looking for is the Google Picker.
It's is a "File Open" dialog for the information stored in Google
servers. With Google Picker, your users can access and upload photos,
videos, maps, and documents stored in Google servers. The selection is
passed back to your web page or web application for further use. You
can read more of that in the
docs.
I have to mention though that the example used is written in Javascript.
If possible then how can Integrate or some helping tutorial link.
Try this iOS Picker demo app from Github.
For additional info about implementing Picker, watch this video from Google.

Pinterest sharing with App Pin

How would I, using the share sheet, share a UIImage on Pinterest and have it link to my app. So that Pinterest users could install my app directly from the Pinterest app?
http://blog.pinterest.com/post/110786995184/install-the-best-new-iphone-and-ipad-apps-from
I can do do manually on my mac. Using the Pinterest browser button I can pin an image, either from my device or from a webpage, and then edit the pin's source to an iTunes page, i.e. https://itunes.apple.com/gb/app/snapchat/id447188370?mt=8
... then it will allow me to install Snapchat from within Pinterest app. I'm just not sure how I can do this within my app, with a custom image.
Sharing with Pinterest, via the share sheet, only allows you to share an image. If you look closer at the Pinterest iOS SDK, you're still limited to sharing the following details:
Image URL
Source web page
Description
When you tell the SDK to pin the image + page, you are taken into the Pinterest app, and the rest is handled there.
The idea you're asking about is a deal between Apple and Pinterest. It seems possible to pin your app's iTunes URL in order to provide this special capability. I haven't seen any details about how this actually works. Is it possible from the share sheet? Maybe - try pinning from the iTunes website.

How to access instagram images

I have an application in which i want to get images from instagram or cameraroll and then use that images. How to pick images from instagram?
You can access instagram images in your iOS app only by using instagramAPI.
If you are not familiar with Social media integration in iOS, please be aware that any social media integration in iOS requires the respective API .
You should start with their docs instagramAPI .The way to access is also described here.
you can check this easy framework https://github.com/Busta117/SBInstagram
you can change when the user tap over the image and get your UIimage to use it where do you want.

Upload images to Salesforce through iOS App

I am trying to upload image to Salesforce just like updating Leads or Accounts through my Phonegap iOS app. I can get the image but by googling a bit, I got to know that i have to convert the image into a BLOB.
My query is about two things:
1. How to convert the image into a blob?
2. How to upload that blob to Salesforce?
Thanks in advance
A blob is just a Binary Large OBject, i.e. a lump of binary data. You just want to read the file into memory and use it's content directly. There may be a need to base64 encode it, but I wouldn't have thought so.
There's a Phonegap plugin for downloading binary data on iOS here, you can see how it uses the standard Apple SDK calls for file access, so opening them shouldn't be a problem for you.
The blog would be a field on an object, much like fields on your Accounts and Contacts, I'm not sure how you specify the size, but putting the binary data into the field shouldn't be a problem.
There's an example of using the REST API to upload binary data (to a document) here — I imagine your solution would be similar to this. What Salesforce API are you using for your app? Are you using their Mobile SDK?
You can attach images to Salesforce record on iPhone using Salesforce Mobile app. This requires a little customization - VF page and apex class. Once you have created the VF page for attachment, then you need add this VF page as 'Visualforce Tab' and enable it on Salesforce Mobile Configuration. Steps to add the newly created Visualforce Tab onto Salesforce Mobile Configuration : Setup->Mobile Administration->Salesforce Mobile->Configuration->'Select your Configuration'->Mobile Tab.
Now using this tab on Salesforce app, you can upload images as attachment.

Resources