Skip to content

Commit db84290

Browse files
committed
Push Notifications done!
1 parent de79041 commit db84290

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
99
<uses-permission android:name="android.permission.VIBRATE"/>
1010
<uses-permission android:name="android.permission.INTERNET" />
11+
1112
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
1213
<permission android:name="softwaremobility.darkgeat.sunshine.permission.C2D_MESSAGE"
1314
android:protectionLevel="signature" />
1415
<uses-permission android:name="softwaremobility.darkgeat.sunshine.permission.C2D_MESSAGE" />
1516

16-
1717
<application
1818
android:allowBackup="true"
1919
android:icon="@mipmap/ic_launcher"

app/src/main/java/softwaremobility/darkgeat/sunshine/MainActivity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected void onCreate(Bundle savedInstanceState) {
5959
mGcm = GoogleCloudMessaging.getInstance(this);
6060
String regId = getRegistrationId(this);
6161

62-
if (SENDER_ID.equals(getString(R.string.projectIdNumber))) {
62+
if (!SENDER_ID.equals(getString(R.string.projectIdNumber))) {
6363
new AlertDialog.Builder(this)
6464
.setTitle("Needs Sender ID")
6565
.setMessage("GCM will not function in Sunshine until you replace your Sender ID with a Sender ID from the Google Developers Console.")

0 commit comments

Comments
 (0)