Can google cloud storage be mapped to gmail accounts? - google-cloud-storage

I am building an iOS app, which uses firebase for gmail authentication. Some user data is stored in firebase. The app will need to store lots of media files from user. I could store these media on firebase storage, however I cannot calculate per user storage capacity with firebase and thereby bill the user accordingly. I do understand that firebase storage is on Google cloud.
I am a new bio to Google cloud and firebase. I would like to know if Google Cloud platform is per user, or is it a platform for the entire app, to store the app's content. Is there any way Google Cloud platform links to google user's own storage capacity?
As the user authenticates with gmail account, I would want the app to link to the user's own google storage capacity and store the media files in user's own google storage. Is this possible with google cloud storage?

If you ask the user for permission and you get it, then you can store files in their Google Drive. See here for documentation:
https://developers.google.com/drive/ios/quickstart
The Drive API is separate from the Google Cloud Storage API. Cloud Storage is used as a storage for your project. For your scenario you could still use Cloud Storage, but then you'd have to keep track of which user owns which file yourself if you want to bill them accordingly.

Related

Firebase security rules for mobile apps

I am bit confused about firebase security rules. Do we need to write firebase security rules only for websites or should we write it for mobile apps also. I am trying to build a mobile app. Do I need to use firebase security rules (firebase is my backend) for my mobile app or is firebase security rules only for websites and is not required to write it for my mobile app. Please clear my confusion.
Security rules save your data from being Update/Read/Write/Delete by unauthorized user, they are not web or app specific they are globally applied on you database (Firestore or Real Time Database) and Firebase Storage).
for more please check https://firebase.google.com/docs/rules/

Multiple purchase using single google play account?

I'm new to google play in app purchase. I have created an app that connects on my back-end server. After installing the app to an android device, user can login with different account that they created in my webserver regardless of what google account was logged-in in their android phone. Can I use the same google account to purchase non consumable item from any of the account logged-in using my own authentication? I'm thinking of saving the purchased item to my webserver after google play purchase successful callback. But the problem is when the buyer make a refund? since I have no way of checking who's account in my webserver it is. What is the best way of doing this? I only want the IAP of google play, I don't want to restrict user to have an google account or change google account in my phone when I log in to my own account in my webserver. Sorry if its unclear.

Blobstore or cloud storage to store users uploaded images & videos?

Which one is best for storing users uploaded images/profile pics & videos ,Blobstore or Cloud storage ???

What happens to an individual .edu Google Apps account that is taken over by a Google Apps for Education migration?

I currently use my #.edu email address as a Google Apps login, and I have a Google Plus account, Google Docs, a Youtube account, Google Finance, and many other Google Apps products tied to that #.edu account profile.
My university is currently planning on moving it's entire .edu domain and email system to Google Apps for Education. How will this affect my current solo Google Apps profile? I know that domain owners can specify which Google Apps products I could login to. Will my Youtube account and all its content be destroyed?
You will be given the option on your next login to either:
Delete your previous account
OR
Rename the 'old' account to a new email address (e.g. sxflynn#gmail.com)
I am not sure what will happen to your solo Apps account once your university moves to Google Apps. But here is a link which may come to rescue you in terms of data at least.
http://www.dataliberation.org/

iPhone iOS Dropbox how to pre-authenticate (link) an account for an app?

I would like to try out an idea of using 1 centralized dropbox account to store data for one of my apps. This would be the kind of a "public" collaborative storage space.
To do so, I need to pre-authenticate the user to use a particular dropbox account. Is there a way for me to link a particular app to a dropbox account, and then include some kind of "pre-authenticated/authorized" tokens within the app to allow the user to interact with my dropbox account without the need to login?
Thank you!