Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
version changed | Dependencies updated
Browse files Browse the repository at this point in the history
  • Loading branch information
saibotk committed Jul 27, 2017
1 parent a3c21e4 commit 207671f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ android {
applicationId "de.pscom.pietsmiet"
minSdkVersion 17
targetSdkVersion 26
versionCode 15
versionName "1.4"
versionCode 16
versionName "1.5"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.NotificationCompat;
import android.text.Html;

import com.google.firebase.analytics.FirebaseAnalytics;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;

Expand Down Expand Up @@ -85,6 +87,11 @@ public void onMessageReceived(RemoteMessage remoteMessage) {
PsLog.w("Falsche Kategorie " + data.get("topic"));
return;
}

Bundle bundle = new Bundle();
bundle.putInt(FirebaseAnalytics.Param.ITEM_NAME, type);
FirebaseAnalytics.getInstance(this).logEvent("notification_received", bundle);

// On notification click intent
Intent clickIntent = new Intent(this, MainActivity.class);
clickIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
Expand Down

0 comments on commit 207671f

Please sign in to comment.