GCM Ok[Debug]

This commit is contained in:
2016-07-25 13:17:14 +02:00
parent a07d323a37
commit ce775aaa17
16 changed files with 126 additions and 22 deletions

View File

@ -44,9 +44,23 @@ namespace BookAStar.Droid
Log.Info ("RegistrationIntentService", "Calling InstanceID.GetToken");
lock (locker)
{
var instanceID = InstanceID.GetInstance (this);
var senderid = MainSettings.GoogleSenderId;
var instanceID = InstanceID.GetInstance(this);
#if DEBUG
try
{
instanceID.DeleteInstanceID();
}
catch(Exception ex)
{
Debug.WaitForDebugger();
Log.Debug("bas.GCM", ex.StackTrace.ToString());
}
#endif
var senderid = MainSettings.GoogleSenderId;
var token = instanceID.GetToken ( senderid,
GoogleCloudMessaging.InstanceIdScope, null);