Proyectos de Subversion Android Microlearning - Nuevo Interface

Rev

Rev 28 | Rev 39 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 28 Rev 30
Línea 11... Línea 11...
11
import com.cesams.twogetskills.skeleton.ITwoGetSkills;
11
import com.cesams.twogetskills.skeleton.ITwoGetSkills;
Línea 12... Línea 12...
12
 
12
 
13
public class InternalReceiver extends BroadcastReceiver {
13
public class InternalReceiver extends BroadcastReceiver {
Línea -... Línea 14...
-
 
14
    private final static String TAG = "C2GS - InternalReceiver";
-
 
15
 
-
 
16
    public InternalReceiver()
-
 
17
    {
-
 
18
        Log.e("BUG Token", "InternalReceiver - Constructor");
14
    private final static String TAG = "C2GS - InternalReceiver";
19
    }
15
 
20
 
16
    @Override
21
    @Override
Línea 17... Línea 22...
17
    public void onReceive(Context context, Intent intent) {
22
    public void onReceive(Context context, Intent intent) {
Línea 41... Línea 46...
41
                    ((ITwoGetSkills) context).showFcmNotification(title, body, new_capsules);
46
                    ((ITwoGetSkills) context).showFcmNotification(title, body, new_capsules);
Línea 42... Línea 47...
42
 
47
 
43
                }
48
                }
Línea 44... Línea -...
44
            }
-
 
45
 
-
 
46
/*
-
 
Línea 47... Línea -...
47
 
-
 
Línea 48... Línea 49...
48
        //Deshabilitado en falla de registro de token del 06/2022:
49
            }
Línea 49... Línea 50...
49
 
50
 
Línea 50... Línea 51...
50
        El servicio envia el intent antes que el reciever sea registrado
51
 
51
 
52
 
52
          if (intent.getAction().equals(Constants.BROADCAST_TYPE_TOKEN)) {
53
          if (intent.getAction().equals(Constants.BROADCAST_TYPE_TOKEN)) {
53
 
54
 
54
                String token = intent.getStringExtra("token");
55
                String token = intent.getStringExtra("token");
Línea 55... Línea 56...
55
 
56