void Start() { PlayGameServices.enableDebugLog(true); // we always want to call init as soon as possible after launch. Be sure to pass your own clientId to init on iOS! // This call is not required on Android. PlayGameServices.init("160040154367.apps.googleusercontent.com", true); }
void Start() { PlayGameServices.enableDebugLog(true); #if UNITY_IOS // we always want to call init as soon as possible after launch. Be sure to pass your own clientId to init! // This call is not required on Android. PlayGameServices.init("160040154367.apps.googleusercontent.com", true); // on iOS we will need to register for push notifications and send the device token to Google so they can send out // push notifications on your behalf Debug.Log("registering for push notifications"); NotificationServices.RegisterForRemoteNotificationTypes(RemoteNotificationType.Alert | RemoteNotificationType.Badge | RemoteNotificationType.Sound); #endif }