GCM Ok[Debug]
This commit is contained in:
parent
6a7a78558e
commit
b2fa0b34e8
16 changed files with 126 additions and 22 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue