Fix PN at first launch

This commit is contained in:
Sylvain Berfini 2012-09-26 14:59:48 +02:00
parent 24ac61bacd
commit 4ede881452

View file

@ -54,6 +54,10 @@ public class ApiEightPlus {
Log.d("Push Notification : storing current sender id = " + newPushSenderID); Log.d("Push Notification : storing current sender id = " + newPushSenderID);
SharedPreferences.Editor editor = prefs.edit(); SharedPreferences.Editor editor = prefs.edit();
editor.putString(context.getString(R.string.push_sender_id_key), newPushSenderID); 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(); editor.commit();
} else { } else {
Log.d("Push Notification : already registered with id = " + regId); Log.d("Push Notification : already registered with id = " + regId);