7,274 questions
590
votes
29
answers
214k
views
google-services.json for different productFlavors
Update: GCM is deprecated, use FCM
I'm implementing the new Google Cloud Messaging following the guides from the Google Developers page here
I've successfully run and test it. But my problem now is I ...
247
votes
16
answers
113k
views
Error:Conflict with dependency 'com.google.code.findbugs:jsr305'
I created a new project in Android Studio 2.2 Preview 1 with Android App and Backend module with Google Messaging. This is the app file:
apply plugin: 'com.android.application'
android {
...
245
votes
10
answers
285k
views
How to send push notification to web browser?
I have been reading for past few hours about Push Notification API and Web Notification API. I also discovered that Google & Apple gives push notification service for free via GCM and APNS ...
219
votes
11
answers
251k
views
Firebase messaging, where to get Server Key?
Firebase allows us to send notification messages via our own application by making POST request.
This tutorial, gives to us instructions how to make this request. However, there is Authorization ...
218
votes
13
answers
199k
views
GCM with PHP (Google Cloud Messaging)
Update: GCM is deprecated, use FCM
How can I integrate the new Google Cloud Messaging in a PHP backend?
216
votes
27
answers
123k
views
Use different GoogleService-Info.plist for different build schemes
I am using a build scheme for prod and one for staging (with 2 different bundle identifiers) and I am trying to use a separate GoogleService-Info.plist for each scheme.
Is there any way to manually ...
204
votes
14
answers
330k
views
Where can I find the API KEY for Firebase Cloud Messaging?
I am trying to figure out how the new version of GCM or Firebase Cloud Messaging works so I moved one of my projects to the new Firebase console, If I did not have the API KEY or I want to create a ...
190
votes
25
answers
160k
views
INSTALL_FAILED_DUPLICATE_PERMISSION... C2D_MESSAGE
I am using Google notifications in my app, and until now I have done below in the manifest:
<!-- GCM -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" /> <!-- GCM ...
180
votes
11
answers
122k
views
Google Play Services GCM 9.2.0 asks to "update" back to 9.0.0
So this morning I started updating to the latest version of my project libraries.
I'm trying to update GCM to the latest version 9.2.0, but I get this error:
Error:Execution failed for task ':app:...
136
votes
3
answers
60k
views
What does google-services.json really do?
I work on adding Google Analytics and GCM services to my current app.
On the guide for both services implementation, google asks developer to generate a json file: google-services.json and put it ...
118
votes
6
answers
102k
views
Adding HttpClient headers generates a FormatException with some values
This occurred within the context of coding against Google Cloud Messaging, but applies elsewhere.
Consider the following:
var http = new HttpClient();
http.DefaultRequestHeaders.Authorization = new ...
109
votes
27
answers
246k
views
Firebase cloud messaging notification not received by device
I am having an issue with FireBase Cloud Messaging in which I get the Token from the device and send the notification test through the Google Firebase notification console however, the notification is ...
107
votes
8
answers
75k
views
FCM with AWS SNS
I am using AWS resources for my android project, I am planning to add push notification service for my project with AWS SNS.there are few questions bothering me much. I did not find any questions ...
99
votes
4
answers
119k
views
Android: Test Push Notification online (Google Cloud Messaging) [closed]
Update: GCM is deprecated, use FCM
I am implementing Google Cloud Messaging in my application. Server code is not ready yet and in my environment due to some firewall restrictions I can not deploy a ...
93
votes
10
answers
124k
views
AWS SDK for PHP: Error retrieving credentials from the instance profile metadata server
I am trying to send SNS messeges to android through web api.
Downloaded and installed the SDK from http://aws.amazon.com/developers/getting-started/php/
Got following error while running sample.php:
...