13.4 通知される内容
次にdidReceiveRemoteNotification:withCompletion:メソッドが、どのような情報を受け取っているのかを調べてみます。ここにもデバッグ文を入れます。
- (void)didReceiveRemoteNotification:(NSDictionary *)remoteNotification
withCompletion:(void (^)(WKUserNotificationInterfaceType))
completionHandler {
NSLog(@"%@", remoteNotification.description);
completionHandler(WKUserNotificationInterfaceTypeCustom);
}
{
aps = {
category = myCategory;
alert = {
body = "Test message";
title = "Optional title";
};
};
customKey = "Use this file to define a testing payload ...";
"WatchKit Simulator Actions" = (
{
identifier = firstButt
この記事は会員限定です。会員登録をすると続きをお読みいただけます。
ログイン / 新規登録