iOS推送1.3.2及以前推送版本升级指导
因推送支持图片,GrowingPushExtensionKit中原有接口不支持弃用,需要修改为新接口。
将原来的接口替换
//旧接口+ (void)sendNotificationRequest:(UNNotificationRequest *)request withCompletionHandler:(void (^)(id response))completionHandler;
新接口
+ (void)handleNotificationRequest:(nonnull UNNotificationRequest *)request withCompletion:(nullable void(^)( NSArray <UNNotificationAttachment *>* _Nullable attachments, NSArray <NSError *>* _Nullable errors))handler;
测试能收到图片推送,则升级成功
Last updated
Was this helpful?