I still using Eclipse for development. I used to use GCM for push notification and just realised that Google introduced FCM while ago. I have problem to setup FCM jar files on Eclipse. Tried to use Google's Youtube video on Github to import libraries but still have problem with that and I prefer to get back to GCM if it is still available. I searched but didn't find the GCM Console anymore. Just wonder if anyone know what can I do ??
Turns out that you can still use google-console.
Go to this link to create a new project or see projectId of available projects: https://console.developers.google.com/iam-admin/
Then you can add credentials for this project or you can go to this link to see availabe projects and their credentials: https://console.developers.google.com/apis/credentials/
You will see something similar to below image. In yellow box you can choose your project name. You can create a new credential by choosing the blue box.
Also note that you can choose your key to be unrestricted which gives you the liberty to use it in different applications, or you can restrict it to be more secure.
I don't believe you can create new projects with GCM.
I recently setup an app with push notifications but I was unable to use GCM and had to create a new Firebase project to be able to use FCM
Related
I forked application to android studio and when I try to make a pull request:
I get :
Can't Create Pull Request
Push failed:
failed to push some refs to 'https://github.com/projectname.git'
What is the right way to do that?
Note :
I can commit and update my projects but I can't make pull request to other projects.
This is obviously an authentication problem. There are WAY too many unknowns, so I doubt anyone can give you a definitive answer. Here are the steps to investigate in order to solve it:
Is your GitHub Account authenticated with your Android Studio installation? Check your Android Studio Settings.
In order to authenticate you need to generate an Access Token through your Github account settings and use that token as seen in the picture above. When generating a new token, normally I would advise you to be careful with the permissions you grant to it. For debugging your issue, generate a new one with full access to everything and delete it as soon as you resolve your issue.
Last, if both of the above steps are done correctly and you still can't open a PR. Make sure the repository you trying to open a PR on, allows third party users to perform such actions.
NOTE: You can always commit code in your local repository. That lives in your local environment (a.k.a. your computer) and you have full permission to do whatever you please with it. That doesn't mean the changes you do locally, will be reflected in the remote repository (a.k.a. the one hosted at Github servers).
First you need to install git client and configure with Android studio then you need to enable git into android studio from VCS option. and then you can see on toolbar 2 icon will come for push and pull request.
by these two option you can do pull and push very easly.
please have look this.
http://prntscr.com/hgvbxw
reference-https://javapapers.com/android/android-studio-git-tutorial/
My friend have finished setting up a Firebase backend for an Android application, and the project is on his private firebase account. Now I am starting to code the iOS version which should access the same Firebase backend.
My question is this... do I need to get his firebase email and password to work on the project or there is a way to import it to my account so I can work on it ?
tip: The solution should be like that, if any change happen in iOS or Android, must change in both of them.
You can add multiple developers to a single project, and you can have multiple apps added to your project. Do the following: your friend must add you to the project, and you must create an iOS application for that project in Firebase.
I am following this tutorial Getting started with Azure Notifications Hub for Xamarin.Android
I have everything setup for my app and now I need to send a test notification to see if my configuration is correct but the Debug tab seems to have gone missing.
Can anyone point me in the right direction ? Any help is appreciated.
Thanks!
I don't know if you're using Visual Studio but if so, you can also use the Server Explorer. Add you Azure subscription there and navigate to the Notification Hub.
From there you have all the functionality which is also available from the Debug tab on Azure.
Checking out the new portal, I think this functionality is (not) yet available.
There is however an option to go back to the 'full' Azure portal (which also implicates not everything is available yet).
Another option is to use the Service Bus Explorer, although this application has been giving me some trouble for the past few days.
This option, and all others, are described here.
Debug tab is available in old portal (for now I guess) at: manage.windowsazure.com
You can also create a postman or fiddler request containing sas token, sample here: https://milenppavlov.wordpress.com/2015/12/15/get-shared-access-signature-authentication-for-azure-notification-hub-and-create-push-notification-via-rest-call/ that can send the notifications for you.
I was thinking of developing an android webview application for my blog and I would want my subscribers to get notifies through push notification whenever I post a new post in y blog.
First off, is this possible?
and if Yes kindly help me to understand how.
I am looking forward to your answers. Thank you
Yes you can. In fact i did the same for my blog on wordpress.
Checkout THIS link, which will show you how to create android app for your blog. This includes complete tutorial with souce code for splash screen, Sharing feature and android webview.
Note : If you don't know how to code, still you can build android app for your blog without any extra efforts. For that you can use :
Appsgeyser
Appypie
There are many other options available you can google it.
For PUSH Notification, i suggest you to use Parse.com. Basically Parse is based on GCM (Google Cloud Messaging). To use parse in your app you need to sign up with parse. After successful sign up you will have client keys and credentials to use parse. Parse will provide a step by step code you need to just paste it in appropriate files. That's it you are done.
I have an android application that is designed to receive push notifications via GCM. When I initially designed the application, I used a "deprecated" tutorial (merely because it was one of the most in-depth I found) and my dev phone was running API 2.4, so I was able to get the service up and running without much issue.
Now, my development device is running Android version 4.4.2, so my goal is to "upgrade" my application to handle GCM properly for all devices (for now, lets ignore the fact that I'll have to differentiate how to handle Push Notifications depending on API level).
I attempted to follow the Android Developer tutorial for creating a demo client app for Google Cloud messaging, which can be found here. https://developer.android.com/google/gcm/client.html
While I hate to sound like I want to ignore to smart coding practices, this official walk through was a little big in terms of scope (My application supports Phonegap, and while I think implementing native GCM is much easier than using the PushPlugin for Phonegap, I don't want to handle more than is absolutely necessary in my Java code)
As a last ditch effort, I simply downloaded the demo gcm code from the source they provided here: https://code.google.com/p/gcm/source/browse/samples/?r=1ca8e646c517310e2d46a6a6eda74106b8084fc5
I attempted to import the gcm-demo-client application, and although I know my SENDER_ID, I don't understand anything about the SERVER_URL. The documentation provided by Android Developers talks very generally about HTTP vs. CCS, and I'm struggling to grasp where this server fits into the grand scheme of all that is Google Cloud Messaging.
Assuming I download the gcm-demo-server project directory they included (which seems to be some kind of Java Project), how do I host it? My previous deprecated GCM simply used a basic android application in which I would submit a form containing the device Registration Id, and a message with a title and context. Unfortunately, I can't figure out how to import their demo-server into Eclipse (since Eclipse doesn't think it contains ANY project files), AND I cannot seem to understand how this server connects with my application in any capacity.
TL/DR Summary of questions:
1.) How can I go about "hosting" the gcm-demo-server from URL #2 above?
2.) If I can just copy the Registration Id from my client app to the clipboard, can I just use my "android server" application to send my messages?
3.) Maybe it's just me, but I don't see anything resembling a Receiver class in the gcm-demo-client project directory, only a GcmIntentService. How can there be an intent when the application can't even properly handle messages?!
Thank you for your patience and help!
(P.S. - I cannot provide any code- however since the code in question is merely the provided Android Developer GCM demo code, this hopefully won't be a big issue)
1) There are many companies that offer server hosting services. You should choose one.
2) If you copy the registration Id manually, and hard code it in an application that serves as a "server", you don't need to host a real server, though that would only work in development. In production, assuming you'll have multiple users who install you app, you'll need a real server that receives and stores the registration IDs of all of them.
3) The demo client project you are referring to is old, and relies on a deprecated library (gcm.jar) which contains a default implementation of the BroadcastReceiver, which receives the messages from GCM server and starts the intent service. If you refer to the current demo app, you'll find a BroadcastReceiver class.
The demo app might not work because it is a gradle project and you should preferably open it in Android Studio. That might be why it could not see it as an Android project at all.
I have recently started implementing GCM myself and it is not difficult at all. I am using AppEngine for holding the backend part of my app. In Android studio, there is a very quick and easy way to generate both the android client and the backend part including the cloud endpoints and even a web interface for sending the messages (you don't need to use it though).
I followed this tutorial https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/GcmEndpoints
Maybe this is not a fully satisfying answer for you, but I found the code very much readable and I understood how this stuff works.