diff --git a/src/org/linphone/compatibility/ApiEightPlus.java b/src/org/linphone/compatibility/ApiEightPlus.java index 90b7e4851..f4e2133e1 100644 --- a/src/org/linphone/compatibility/ApiEightPlus.java +++ b/src/org/linphone/compatibility/ApiEightPlus.java @@ -50,15 +50,11 @@ public class ApiEightPlus { String currentPushSenderID = prefs.getString(context.getString(R.string.push_sender_id_key), null); if (regId.equals("") || currentPushSenderID == null || !currentPushSenderID.equals(newPushSenderID)) { GCMRegistrar.register(context, newPushSenderID); - String newRegId = GCMRegistrar.getRegistrationId(context); 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 = " + newRegId); - editor.putString(context.getString(R.string.push_reg_id_key), newRegId); - editor.commit(); } else { Log.d("Push Notification : already registered with id = " + regId); diff --git a/src/org/linphone/gcm/GCMReceiver.java b/src/org/linphone/gcm/GCMReceiver.java index 39ba73eb4..63be75d8f 100644 --- a/src/org/linphone/gcm/GCMReceiver.java +++ b/src/org/linphone/gcm/GCMReceiver.java @@ -18,8 +18,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -import org.linphone.core.Log; - import android.content.Context; import com.google.android.gcm.GCMBroadcastReceiver; @@ -30,7 +28,6 @@ import com.google.android.gcm.GCMBroadcastReceiver; public class GCMReceiver extends GCMBroadcastReceiver { @Override protected String getGCMIntentServiceClassName(Context context) { - Log.e("Broadcasting GCM = " + context.getPackageName() + ".gcm.GCMService"); - return context.getPackageName() + ".gcm.GCMService"; + return "org.linphone.gcm.GCMService"; } } \ No newline at end of file