From 4ede881452d01c64df193ebdb4829b0983656967 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Wed, 26 Sep 2012 14:59:48 +0200 Subject: [PATCH] Fix PN at first launch --- src/org/linphone/compatibility/ApiEightPlus.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/linphone/compatibility/ApiEightPlus.java b/src/org/linphone/compatibility/ApiEightPlus.java index 56a95b9f1..dd298bd19 100644 --- a/src/org/linphone/compatibility/ApiEightPlus.java +++ b/src/org/linphone/compatibility/ApiEightPlus.java @@ -54,6 +54,10 @@ public class ApiEightPlus { Log.d("Push Notification : storing current sender id = " + newPushSenderID); SharedPreferences.Editor editor = prefs.edit(); editor.putString(context.getString(R.string.push_sender_id_key), newPushSenderID); + + Log.d("Push Notification : new id = " + regId); + editor.putString(context.getString(R.string.push_reg_id_key), regId); + editor.commit(); } else { Log.d("Push Notification : already registered with id = " + regId);