diff --git a/src/org/linphone/GCMIntentService.java b/src/org/linphone/GCMIntentService.java index d0cac16bc..1a4b9ca1e 100644 --- a/src/org/linphone/GCMIntentService.java +++ b/src/org/linphone/GCMIntentService.java @@ -46,6 +46,8 @@ public class GCMIntentService extends GCMBaseIntentService { @Override protected void onMessage(Context context, Intent intent) { Log.d("Push notification received"); + LinphoneManager.getLc().setNetworkReachable(false); + LinphoneManager.getLc().setNetworkReachable(true); } @Override diff --git a/src/org/linphone/LinphoneLauncherActivity.java b/src/org/linphone/LinphoneLauncherActivity.java index e0f478f95..128f0334a 100644 --- a/src/org/linphone/LinphoneLauncherActivity.java +++ b/src/org/linphone/LinphoneLauncherActivity.java @@ -67,7 +67,7 @@ public class LinphoneLauncherActivity extends Activity { if (regId.equals("")) { GCMRegistrar.register(this, getString(R.string.push_sender_id)); } else { - Log.e("Already registered = " + regId); + Log.e("Push Notification : already registered with id = " + regId); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); SharedPreferences.Editor editor = prefs.edit(); editor.putString(this.getString(R.string.push_reg_id_key), regId);