-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue Delegate #4
Comments
@Husseinhj realtime is active |
Try uninstalling & installing again. If it didn't work, set |
|
Which policy did you use for sending your message? Inbox (صندوق پیام) or Push (پوش نوتیفیکیشن)? |
I am implementing the sandbox |
//
// AppDelegate.swift
// MyZarinPal-v4-iOS
//
// Created by Farshid Roohi on 2/23/20.
// Copyright © 2020 Farshid Roohi. All rights reserved.
//
import UIKit
import AdpPushClient
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate,PushClientManagerDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
PushClientManager.resetBadge()
PushClientManager.default()?.addDelegate(self)
PushClientManager.default()?.configureEnvironment(.Sandbox)
PushClientManager.default()?.logLevel = ChabokLogLevel(rawValue: ChabokLogLevelVerbose.rawValue)
return true
}
// MARK: UISceneSession Lifecycle
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}
func pushClientManagerDidReceivedMessage(_ message: PushClientMessage!) {
print("message : \(String(describing: message))")
}
func pushClientManagerDidReceivedEventMessage(_ eventMessage: EventMessage!) {
print("eventMessage : \(String(describing: eventMessage))")
}
func pushClientManagerDidDeliveredMessage(_ message: PushClientMessage!) {
print("PushClientMessage : \(String(describing: message))")
}
func pushClientManagerUILocalNotificationDidReceivedMessage(_ message: PushClientMessage) {
print("pushClientManagerUILocalNotificationDidReceivedMessage : \(message)")
}
}
|
این گزینه اقدام به ارسال پوشنوتیفیکیشن تستی در اپلیکیشن میکند و با قابلیت صندوق پیام (پیام چابک) متفاوت هست. دقت بفرمایید گزینه صندوق پیام در پنل شما غیرفعال است. برای دریافت پیام در متد جهت دریافت دیتا پوشنوتیفیکیشن این بخش از مستندات رو مطالعه بفرمایید |
Problem Not Work Delegate
When receive Notification The
pushClientManagerDidReceivedMessage
method is not calledtest iOS 14, Xcode 12
SDK : pod 'ChabokPush', '~> 2.2.0'
The text was updated successfully, but these errors were encountered: