Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
315 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"project_info":{"project_id":"pubchat-123df","project_number":"709361095668","name":"PubChat"},"client":[{"client_info":{"client_id":"android:me.kevingleason.pubnubchat","client_type":1,"android_client_info":{"package_name":"me.kevingleason.pubnubchat"}},"oauth_client":[],"services":{"analytics_service":{"status":1},"cloud_messaging_service":{"status":2,"apns_config":[]},"appinvite_service":{"status":1,"other_platform_oauth_client":[]},"google_signin_service":{"status":1},"ads_service":{"status":1}}}],"ARTIFACT_VERSION":"1"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
app/src/main/java/me/kevingleason/pubnubchat/gcm/GcmBroadcastReceiver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package me.kevingleason.pubnubchat.gcm; | ||
|
||
import android.app.Activity; | ||
import android.content.ComponentName; | ||
import android.content.Context; | ||
import android.content.Intent; | ||
import android.support.v4.content.WakefulBroadcastReceiver; | ||
import android.util.Log; | ||
|
||
|
||
/** | ||
* Created by GleasonK on 7/14/15. | ||
*/ | ||
public class GcmBroadcastReceiver extends WakefulBroadcastReceiver { | ||
@Override | ||
public void onReceive(Context context, Intent intent) { | ||
Log.d("GCM-receiver","GCM Message Received!"); | ||
ComponentName comp = new ComponentName(context.getPackageName(), GcmIntentService.class.getName()); | ||
startWakefulService(context, (intent.setComponent(comp))); | ||
setResultCode(Activity.RESULT_OK); | ||
} | ||
} |
Oops, something went wrong.