Proyectos de Subversion Android Microlearning - Nuevo Interface

Rev

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

Rev 30 Rev 31
Línea 64... Línea 64...
64
            if(remoteMessage.getData().containsKey("command")) {
64
            if(remoteMessage.getData().containsKey("command")) {
65
                String command = remoteMessage.getData().get("command").trim();
65
                String command = remoteMessage.getData().get("command").trim();
Línea 66... Línea 66...
66
 
66
 
67
                Intent intent = new Intent(Constants.BROADCAST_TYPE_COMMAND);
67
                Intent intent = new Intent(Constants.BROADCAST_TYPE_COMMAND);
68
                intent.putExtra("command", command);
68
                intent.putExtra("command", command);
69
                sendBroadcast(intent);
69
                getApplicationContext().sendBroadcast(intent);
70
            }
70
            }
71
        }
71
        }
72
        if (remoteMessage.getNotification() != null) {
72
        if (remoteMessage.getNotification() != null) {
73
            String title = remoteMessage.getNotification().getTitle();
73
            String title = remoteMessage.getNotification().getTitle();
Línea 99... Línea 99...
99
            intent.putExtra("command", command);
99
            intent.putExtra("command", command);
100
            intent.putExtra("new_capsules", new_capsules);
100
            intent.putExtra("new_capsules", new_capsules);
Línea 101... Línea 101...
101
 
101
 
102
 
102
 
103
 
103
 
Línea 125... Línea 125...
125
 
125
 
126
        sync = new Sync(Constants.SYNC_ADAPTER_TYPE_FCM, fcm_token);
126
        sync = new Sync(Constants.SYNC_ADAPTER_TYPE_FCM, fcm_token);
Línea 127... Línea 127...
127
        mAppDatabase.getSyncDao().insert(sync);
127
        mAppDatabase.getSyncDao().insert(sync);
-
 
128
 
-
 
129
        syncTokenFMCTo2getSkillServer();
-
 
130
        */
-
 
131
 
-
 
132
        Intent intent = new Intent(Constants.BROADCAST_TYPE_TOKEN);
Línea 128... Línea -...
128
 
-
 
129
        syncTokenFMCTo2getSkillServer();
-
 
130
 
-
 
131
            Intent intent = new Intent(Constants.BROADCAST_TYPE_TOKEN);
-
 
Línea 132... Línea 133...
132
            intent.putExtra("token", Functions.trimNull(fcm_token));
133
        intent.putExtra("token", Functions.trimNull(fcm_token));
Línea 133... Línea 134...
133
            sendBroadcast(intent);
134
        getApplicationContext().sendBroadcast(intent);
134
 */
135