I am developing an app which use the google sign-in ,in order to that I have a google-services.json file ,now I need to use the Google Cloud Messaging service and my question is ,I need to generate another google-services.json file or can I use the google-services.json file I already have?
Go here to create your google-services.json file:
https://developers.google.com/mobile/add
(you probably need to be logged in). From there, you can select the platform and then you can select the google services you want. Among them, there is google sign in and GCM. Select those two and generate your one google-services.json file.
I am not sure how you generated your current google-services.json file or what you did, so I am not sure if you should just replace it but I do know the above method is how you can create one google-services.json file to rule them all.
Related
I want to download files for my private app without having to go through oauth.
In other word, I want to simplify the process to get my files from remote dropbox. Preferable, something like invoking GET to /files/<path>?key=<APP_KEY> to download the file at <path>.
Is it possible to accomplish that on Dropbox API?
The Dropbox API does not offer the ability to download files from an account without authorization. You'll need an access token to use /2/files/download. Access tokens don't expire by themselves though, so you can store and re-use them without further manual user intervention. I.e., get an access token for your account manually once, and just store that so your app can use it to call /2/files/download as documented each time.
Alternatively, if you only need to download from pre-determined file(s), you can get shared link(s) for the file(s) and download directly from the shared link(s):
https://www.dropbox.com/help/files-folders/view-only-access
https://www.dropbox.com/help/desktop-web/force-download
I am implementing GCM with android client and according to the google documentation I need to download the google-services.json and add it to the module. I notice that the google-services.json contains the api key for the project. Is it wise to include the api key in the project?
In my scenario I have to use GCM with android using AWS, in the aws documentation they are simply adding the project number for registration
http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html
But in android studio when I add dependency in the build.gradle I am getting compilation error for missing google-services.json.
com.google.gms:google-services:
so my question is there a way I can skip the google-services.json in the android studio project? and if not then is it wise to include the api key in that file?
Thanks
P
As have been discussed in this thread, "google-services.json contains developer credentials and configuration settings, which is needed to verify while connecting with GoogleApiClient". However, it was also mentioned that GCM has been used before without google-services.json .
In my app gcm server key that is being used on server is not visible on google developer console.
Hence when i am trying to use google-services.json approach to integrate analytics its resulting in creating new key and project id.
how do i get google-services.json file for existing project.
Follow this link to get a configuration file to add to your project. The configuration file provides service-specific information for your app. To get it, you must select an existing project for your app. Check this documentation.
Have a question regaring GCM and the google-services.json file creation. When you go to the website trying to create this file, you need to crete or specify a project. I can't find anywhere if this project must be created from the Google account used to publish the application in Google Play or any Google account would do.
Any ideas?
Thanks!
Updatate:
All accounts used are developer accounts. Just want to understand if it is a requirement to use the same Google account for the app in Google Play.
If you have already added the project to your google publication list then it should be in the pull down list. if not then you need to create it from the dash board here
you will need to have a paid developer account to do this. Which ever account you are logged in as needs to have the project in the dash board otherwise you wont get access to it
I am working on Dropbox Core API with Google App Engine (python). There seems to be some problems with Dropbox-python-sdk on GAE. Therefore, I have choose to use the Core APIs directly.
My app is trying to retrieve all image files from a user's dropbox (with file type permission). But I couldn't find a way to get all files without specifying the root/path (all the APIs stated here requires a specific file path)
Any idea?
EDIT Dropbox actually recommends not automatically recursing via /metadata calls. (See https://www.dropbox.com/developers/core/bestpractices.)
There's no method to get a recursive list of files, so you would need to use /search to find files or /delta with no cursor to get the full list of files.
Could the Chooser be an option here (if you're just trying to let the user pick individual files)?