how can i download videos from firebase storage? - ionic-framework

How can I download videos from Firebase storage by clicking on a Buttun in ionic?
i didn't see anything in ionic docs except for notifications. I tried another solutions like dropbox but I didn't see API for it.

You need to get the file link with:
afStorage.ref(refInStorage).getDownloadURL().subscribe(fileLink => )
Then the easy way it's open the file link in the default browser:
window.open(fileLink, '_system');
Other workaround is open inside and with the help of InAppBrowser or FileOpener(StackOverflow Question)
All together:
afStorage.ref(refInStorage).getDownloadURL()
.subscribe(fileLink => window.open(fileLink, '_system'))

Related

Opening facebook page and app store using ionic 3 in iOS

I wanna open my facebook page link using the ionic: It's working in Android using:
window.open('fb://page/620967164688741', '_system')
and through some tutorials I came to know that in order to open Facebook page, use the:
window.open('fb://profile/620967164688741', '_system')
But even after doing that, I'm unable to open.
And same goes with open the store, on Android it's working fine but again issue on iOS. Below is the code:
let promise = this.market.open('com.teach9.teach9');
Can someone correct me where I'm making mistake?
How about you check this plugin out for iOS - "inAppBrowser" at "https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-inappbrowser/"?
P.S. In iOS you should be able to open any webpage inside the inAppBrowser, Make sure that the target is set as "_blank" instead of "_system".

Upload action.json file of Google actions via API

I upload my google action file via Gactions CLi but is there any way to upload google action' action.json file via API.?
I don't know what exactly you are trying to say, but I have tried to figure out and answer.
I think you are trying to ask us about how to upload JSON file in api.ai? If yes then you have to follow these steps.
1. Go to api.ai
2. Click on 3 dots beside create intent option.
3. Click on upload intent. [1]: https://i.stack.imgur.com/F08mt.jpg
4. Choose file and upload.
There's one more method.
1. Go to settings of your agent.
2. Go to export/import
3. Click import from zip
4. Select your zip file and upload it.
Yes you can do it by coding. You just need to use the Dialogueflow client api.
For more information please refer below link.
https://developers.google.com/api-client-library/java/apis/dialogflow/v2

Dropbox is not displayed in the filepicker dialog window

we are using filepicker and it works fine. But we are not able to upload the files by using the dropbox as it is not displayed in the filepicker dialog window.
we set the services as
services: ['COMPUTER', 'GMAIL', 'DROPBOX', 'SKYDRIVE', 'CUSTOMSOURCE'],
we are able to see all other except dropbox.
Any help on this is highly appreciated
From some time Filepicker require your own Dropbox app to connect. So first you need to create Dropbox app, then set dropbox keys in filepicker panel.
Here you can find more details https://developers.filepicker.com/docs/support/integration/3
https://www.filepicker.com/documentation/services/dropbox_doc

How to add facebook-ios-sdk in app for login and fetch user data

I want to integrate the facebook login dialog in my app. For that i have checked the facebook developer page to integrate it.
1 - Downloaded facebook sdk package and installed it
2 - added facebook.framework and FBUserSettingsViewResources.bundle in my app
3 - and use its SessionLoginSample
Its running and user can do login using facebook but its open in safary instead of that i want to open it in dialog box.
Answer in here says that do change in facebook.m file but my project does not have it. for that i have downloaded facebook-ios-sdk project from the GITHub and in that project from src folder i have copied all file in my project. Its non arc so added flag fno-objc-arc.
But facebook.m file does not contain that code which answer suggested to change. And also i have implemented graph GraphApiSample but it display error in FBLoginView.
So plz help on this topic any code or tutorial will be highly appreciable.
If you want to open the login page within your app you have to use the FBGraphAPI .
If you want to force the web dialog, you need to specify the login behavior.
If you look in FBSession, there are many methods to open a Session, many of which will take an FBSessionLoginBehavior parameter. If you pass in FBSessionLoginBehaviorForcingWebView for the login behavior, it will force the web view dialog.

iphone - opening an artist link on an application

I am trying to open an "artist link" on an iPhone application but it is not working. The link is to be inside a local HTML file.
I have tried to use "http://phobos...." or "itms://...." but it seems to be not working.
Yes, I am aware of this apple doc, but what is written on this doc does not seams to work for artist links.
Before answering generically, try this. Open itunes and make a search for your name. Right click on your name and copy the link. This is my link. Use this link inside a local HTML on your app and see if it opens. I cannot get mine to work.
I am using the technique and the methods mentioned on the apple doc to make all the redirections but I see the message CANNOT OPEN ITUNES. (itunes ?)
any clues? thanks for any help.
Try either one of these instead of copying the link from itunes, just replace the end part of the URL with the relevant artist name.
Artist’s name or App Store developer’s name: http://itunes.com/Artist_Or_Developer_Name
Album name: http://itunes.com/Artist_Name/Album_Name
App Store apps: http://itunes.com/app/App_Name
Movies: http://itunes.com/movie/Movie_Title
TV show: http://itunes.com/tv/Show_Title