Closed aminjalalian closed 6 years ago
Did you added the Chabok framework pod to your target (NotificationExtentionService
)?
Note :
For each target, You should add your targets in pod. So yourNotificationExtentionService
need to added in pod to have access the Chabok framework.
target 'YourTarget' do
use_frameworks!
pod 'ChabokPush'
end
yes I use it in AppDelegate.swift and it works except this page
In your pod file you should add your pods also for your other targets. It’s work on your AppDelegate because of you by default add your app target in pod file, For use Pod libraries in your other target such as watch service or notification service you should add POD Target block config for your other target. An example for simple project with notification service your pod file should contain these values:
platform :ios, '9.0'
target 'YOUR_APP_TARGET' do
use_frameworks!
pod 'ChabokPush'
end
target 'NotificationExtentionServiceTarget' do
use_frameworks!
pod 'ChabokPush'
end
This pod config will linking your pods for each target of your project.
It worked Thanks
In all pages works except NotificationService.swift