Skip to content

Commit

Permalink
Fix data args
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Apr 8, 2024
1 parent 4d960c2 commit a3458bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Shiny.Push/Platforms/Android/AndroidPushNotification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ public NotificationCompat.Builder CreateBuilder()

if (not != null)
{
// TODO: config OR click_action
var intent = new Intent(not.ClickAction ?? ShinyPushIntents.NotificationClickAction);
foreach (var item in this.NativeMessage.Data)
intent.PutExtra(item.Key, item.Value);

var pendingIntent = PendingIntent.GetActivity(
this.Platform.AppContext,
99,
Expand Down

0 comments on commit a3458bf

Please sign in to comment.