blob: a517bc1e7d5ff5f7036204f357eee8b62c42da0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package com.adobe.phonegap.push;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
public class PushDismissedHandler extends BroadcastReceiver implements PushConstants {
private static String LOG_TAG = "Push_DismissedHandler";
@Override
public void onReceive(Context context, Intent intent) {
Bundle extras = intent.getExtras();
FCMService fcm = new FCMService();
String action = intent.getAction();
int notID = intent.getIntExtra(NOT_ID, 0);
if (action.equals(PUSH_DISMISSED)) {
Log.d(LOG_TAG, "PushDismissedHandler = " + extras);
Log.d(LOG_TAG, "not id = " + notID);
fcm.setNotification(notID, "");
}
}
}
|