Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
Issue#1282 Show app name if title is empty (#1285)
Browse files Browse the repository at this point in the history
  • Loading branch information
malwatte authored and macdonst committed Oct 13, 2016
1 parent 4f13533 commit 3d7a3a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/android/com/adobe/phonegap/push/GCMIntentService.java
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@ private void showNotificationIfPossible (Context context, Bundle extras) {

Log.d(LOG_TAG, "create notification");

if(title == null || title.isEmpty()){
extras.putString(TITLE, getAppName(this));
}

createNotification(context, extras);
}

Expand Down

0 comments on commit 3d7a3a3

Please sign in to comment.