Fix PN at first launch
This commit is contained in:
parent
24ac61bacd
commit
4ede881452
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue