Flutter links then firebase write - flutter

I'm creating a shopping list app using flutter and Firebase database where users can share their own shopping list.
I'd that users can share a link where other users just tapping that link can open my app and see the shopping list shared.
So when a user tap the link automatically my app opens up and write a key value in firebase database.
How can I achieve my purpose?
I don't even know what to search in google? :s
Thank you

What you're describing is (within Firebase) achieved by the product called Firebase Dynamic Links. With these you can generate a link to any screen in your app, so that when the user clicks the link they are taken to that screen (even if they have to install the app first).
So I recommend reading the documentation on creating dynamic links and receiving dynamic links in Flutter.

Related

How to make profile as link to share

I am going to create a chat application using flutter with the firebase database, I want to add a profile sharing feature that opens a specific profile by its profile link, e.g. In Telegram, we have our own profile id and we can share it as https://t.me/username, just of one click it opens with telegram app with that specific user profile. Then how do I do this?
Firebase Dynamic Links
Firebase Dynamic Links is the service that does what you're describing. The documentation states the following:
You create a Dynamic Link either by using the Firebase console, using
a REST API, iOS or Android Builder API, or by forming a URL by adding
Dynamic Link parameters to a domain specific to your app. These
parameters specify the links you want to open, depending on the user's
platform and whether your app is installed.
Setup
First, you will need to enable it for your Firebase project through your Firebase console.
Then, you will include its official package for Flutter called firebase_dynamic_links in your app.
You can create Dynamic Links programmatically with your app or maybe Cloud Functions or by using the Firebase console.
Use the firebase_dynamic_links package to check if a Dynamic Link was passed to it when your app opens.
You can view the analytics data to track the performance of your Dynamic Links in the Firebase console.

Flutter - How to build an app with a generic homepage and optional sign in features

I am trying to create an e-commerce app which has a generic homepage, which will list all products. I would then like the user to have an "account" page where they can either sign up or sign in.
When the user attempts to buy a product from the home screen, if they are not logged in they will need to before proceeding. I am not expecting someone to code this out for me (unless its a fairly straightforward ask) but can somebody advise on how to structure this project or better yet, link me to an example? I have trawled youtube looking for an example but all seem to have the user directed straight to the log in screen when launching the app.
Thanks
You have to learn Firebase methods it will give you a server less cloud to stock your data and handle users information for account page.
I learn thanks to these guy videos https://youtu.be/FTju8w4zEno

How to share an image from gallery with my flutter app?

Can anyone point me to a library or advice on how I can go about sharing an image from the gallery with my app using the share button? I want to have my app appear in the list of apps to share with. There are libraries such as [share] https://pub.dev/packages/share that allow you to share content from your app with other apps but it doesn't do what I am looking for.
TL:DR Coming from android,you can do this with a content provider. then using platfrom channels get it to flutter.
Allowing Other Apps to Start Your Activity
For example, if you build a social app that can share messages or photos with the user's friends, you should support the ACTION_SEND intent. Then, when users initiate a "share" action from another app, your app appears as an option in the chooser dialog (also known as the "disambiguation dialog")
To allow other apps to start your activity in this way, you need to add an element in your manifest file for the corresponding element.
When your app is installed on a device, the system identifies your intent filters and adds the information to an internal catalog of intents supported by all installed apps. When an app calls startActivity() or startActivityForResult(), with an implicit intent, the system finds which activity (or activities) can respond to the intent.
read more from docs
I guess you are searching for something like explained here:
https://medium.com/flutter-community/receive-sharing-files-to-flutter-app-from-another-app-7a84c0c0cd88
You could also try this flutter package: https://pub.dev/packages/receive_sharing_intent

codename one. How to share a link to your app.

What I want to achieve here is similar to what most apps do, specifically like Youtube. If I share a video on youtube the user gets a link to the video. When the link is clicked the user is automatically taken to the video in the Youtube app (if the user has the app). I want that sort of functionality. My app has different stores on it and information about the store. I want the user to be able to "Share" a store via Whatsapp, sms etc so then when the receiver clicks on the shared link they are automatically taken to that specific store's page INSIDE my app. And if they do not have the app the link must take them to my app's page in the app store to allow them to download it. How do I achieve this in codename one. I looked at the share functionality in the developer doc and the How To section and that only shows me how to share text or images. Not a link to my app.
You can use the ShareButton or it's underlying native share API call (notice this behaves differently on devices as this relies on native functionality).
To share one URL that works on all platforms you need server side code as we have no way of knowing if the guy who will click the link has the same device as you have.
How to make QR code for BOTH Android Market and App Store answers that although it discusses QR codes this is applicable to links as well e.g. http://onelink.to/ looks like it could solve that although I haven't tried their service.
The correct answer to this question was actually URL intercepting. http://www.codenameone.com/blog/intercepting-urls-on-ios-android.html You share a url from your app to an external application. When the user opens that lick in an external application the user is automatically taken to your app if your app intercepts it.

Get Realtime Updates from a Facebook page

I am working on a web app that use Facebook login. The purpose of the app is to get information about fan pages that the user has in his account (for which he got admin privileges). I work mostly with the insights informations but this is not the issue. Now I would like to receive realtime update from the page like new messages, page posts reply etc. I've read the documentation https://developers.facebook.com/docs/reference/api/page/#realtime
and I don't understand the part about adding the app to the page. It is required that the app to be installed for example in one of the tabs? If so, is there a way not to do that and still receive the informations that I want? Also when I try to create a Realtime Update Subscriptions for the page object no "posts" field was available, then how to get realtime updates about it? I am a little confuse and any guidance and advise is more than welcomed.
P.S. I am using PHP SDK, if this helps with something.
I've read the documentation
How about reading it again?
I don't understand the part about adding the app to the page. It is required that the app to be installed for example in one of the tabs? If so, is there a way not to do that and still receive the informations that I want?
Quote from the docs part you linked to yourself:
Note: You might think that because you're adding this via the tabs API that this is a tab app. It's not. This app isn't visible to users as a page app and isn't managed via any UI.
Also when I try to create a Realtime Update Subscriptions for the page object no "posts" field was available, then how to get realtime updates about it?
You can subscribe to the page’s feed.