このヘルプページは Creator 6 をご利用のユーザー向けです。旧バージョン(Creator 5)をご利用の場合は、こちらをクリックしてください。ご利用中のCreator のバージョンを確認してください。
Creator.設定する(uiDelegate: self)
UNUserNotificationCenter.現在().delegate = self
let authOptions: UNAuthorizationOptions = [.alert, .badge, .sound]
UNUserNotificationCenter.現在().requestAuthorization(options: authOptions,completionHandler: {_, _in})
UIApplication.shared.registerForRemoteNotifications()func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
ZCNotificationService.registerAPNS(deviceToken: deviceToken)
}func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> 無効) {
if let userInfo = notification.request.content.userInfo as? [String: Any] {
印刷する('is Creator Server : \(ZCNotificationService.isCreatorServerNotification(notificationInfo:userInfo))')
// これを標準の表示オプションに変更してください
}
completionHandler([[.badge, .alert, .sound]])
}
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> 無効) {
if let notificationInfo = response.notification.request.content.userInfo as? [String: Any] {
if (ZCNotificationService.isCreatorServerNotification(notificationInfo: userInfo)) == 真
{
if let zcnotification = ZCNotificationService.zcNotification(notificationInfo) {
// ここでは例として、データ概要を表示しています。
let summaryVC = ZCUIService.getRecordSummaryViewController(for: zcnotification)
window?.rootViewController?.present(UINavigationController.init(rootViewController: summaryVC), animated: 真, completion: nil)
}
}
else
{
// Zoho Creator サーバーからの通知ではありません
}
completionHandler()
}
} ZCNotificationService.unRegisterAPNS {
}メモ: この設定を削除すると、Creator アプリケーション内のワークフローや、モバイル SDK を使用して作成された iOS アプリから実行されるプッシュ通知を、iOS アプリのユーザーが受信しなくなります。





「導入したばかりで基本操作や設定に不安がある」、「短期間で集中的に運用開始できる状態にしたい」、「運用を開始しているが再度学び直したい」 といった課題を抱えられているユーザーさまに向けた少人数制のオンライントレーニングです。
日々の営業活動を効率的に管理し、導入効果を高めるための方法を学びましょう。