I want to track the time engagement of users in the app that how much time each user spend in the app and send this time report to the admin through firebase in Flutter.
Need a detail code about this.
Related
I'm in process of developing a mobile app using Ionic framework for Android. In process of development, I came across couple of questions:
I'm building a SignUp/SignIn page, in case if the user is not registered, he will register and if already registered then user will login. Once when the user is logged in and if user close the app and come back, he is still logged in, how is that maintained?
for ex: like Amazon, when the user add some items to cart and close the app, cart is retained even when user re opens the app. Is it like, server should store such information or how can that be achieved?
Please suggest, thanks in advance.
You can save the session token after logging in and use it when logging on to the application.
During the launch of the application, you simply need to check whether the token is saved, if not, then open the login page.
I am using AppInviteInvitation to let users invite other others for my app. Does anyone know if there's a way from the API to prevent users from these two scenarios:
already have the app installed
received the invitation previously?
Thanks!
Firebase App Invites does not allow you to get information on the list of users who has been invited before or already have an application in their smartphone.
I would recommend to use combination of "Firebase App Invites" and "Facebook App Invite".
Facebook App Invite take care of both the scenarios you mentioned:
1) Already have the app installed - If the user already have an app installed the users won't see your invite in their notification.
2) Received the invitation previously - If the users already received the invite before they won't receive it further after a threshold time.
But again you don't have any API to access this information, the above scenario is taken care by Facebook itself.
Google App Invites only allows you to find out the fact that you were invited, but does not store this information anywhere. You can use the services such as Kinvey, Deployd, PushWoosh and so on, in which you can record information about the invites sent in database. So if the invited user has an installed application you can fix the invoice repayment there, and the inviting user in the application sees how many invitations he has left to send.
We use both facebook sdk and adjust sdk (facebook mobile measurement partner). When running Ad campaigns on facebook, both send to facebook analytics an 'install' event resulting that facebook shows double as much installs (for every user 2 installs). I haven't found a way to remove the 'install' event for either of the them and keeping at the same time all other event tracking intact. What is the technical solution here to just get one event per user to facebook analytics?
I want to develop an app for android and ios with in-app purchase capability. One of the "purchased virtual goods" I want to give to user (like a gift) only the first time.
I don't want implement user registration.
If the user reset own device and reinstall the app, I don't want to give him another gift.
What is the correct method?
For iOS - when uploading app if IAP contains, Apple ask for first time discount or also you can give promo code to user for this feature.Refer to image for the same
I'm writing a picture frame app for my grandma on Android that will update automatically with pictures from her Picasa album. (Not that she knows what Picasa is.) The app will log in to Picasa automatically using her registered Google account. (Not that she knows what a Google account is, or that she has one.)
Through much pain and reading erroneous/obscure/contradictory/vague documentation, I am slowly starting to have my app authenticate itself using the default Android Google account. Of course the first time that access is made, I get a notification and I must enter the Google password. I then get an auth token I can use for future requests, so that the picture viewer can happily update its photos without bothering Grandma to enter some password.
The question: how long will it be until my auth token to Picasa will expire? An hour? A day? A week? Will my picture viewer suddenly stop showing pictures to Grandma and ask her to enter her password? The whole point of this exercise is to make things easy for Grandma.
They don't last all that long, but you just call AccountManager.invalidateAuthToken() on a 401 or 403, and then re-call AccountManager.getAuthToken() to get a new token. Grandma only has to say OK once, the first time she runs the app.
info from http://code.google.com/intl/lt/googleapps/faq.html
What is the time to live of an authentication token?
Authentication tokens expire after 24 hours. We recommend that you keep the token in memory rather than writing it to a file.