I am not able to receive notifications on a MacOS build with HovelHouse Plugin. I am making a development build and I followed all the steps here:
http://www.hovelhouse.com/building_for_macos.html
and here:
http://www.hovelhouse.com/tutorial_subscriptions.html
By the way, thank you for these pages !
So, my app is running, and I've been able to create a record and a subscription. The only thing which differs in my subscription from the one in the sample is the predicate, with the following format:
Code: Select all
var predicate = NSPredicate.PredicateWithFormat("clubId = '" + clubId + "'");
and right after is the log about subscriptions:[MainMenuGameMode] Requesting notification token
[11862:90268] [HovelHouse-CloudKit] request notification token
[11862:90268] Added instance method `application:didRegisterForRemoteNotificationsWithDeviceToken:` of OverrideAppDelegate to PlayerAppDelegate with success
[11862:90268] Added instance method `application:didFailToRegisterForRemoteNotificationsWithError:` of OverrideAppDelegate to PlayerAppDelegate with success
[11862:90268] Added instance method `application:didReceiveRemoteNotification:` of OverrideAppDelegate to PlayerAppDelegate with success
[11862:90268] Set notification handler...
[11862:90268] CKContainer_defaultContainer()
[11862:90268] Set notification handler...
while there should be at least one of these log :You have the following subscriptions: <subscription id>
Code: Select all
if (error != null)
{
Debug.LogError("Failed to get push notification token: " + error.LocalizedDescription);
}
else
{
Debug.Log("Got push notification token");
}
Shay