JPushNotificationExtensionService.h 932 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * | | | | \ \ / / | | | | / _______|
  3. * | |____| | \ \/ / | |____| | / /
  4. * | |____| | \ / | |____| | | | _____
  5. * | | | | / \ | | | | | | |____ |
  6. * | | | | / /\ \ | | | | \ \______| |
  7. * | | | | /_/ \_\ | | | | \_________|
  8. *
  9. * Copyright (c) 2017 Shenzhen HXHG. All rights reserved.
  10. */
  11. #import <Foundation/Foundation.h>
  12. #define JPUSH_EXTENSION_VERSION_NUMBER 1.1.2
  13. @class UNNotificationRequest;
  14. @interface JPushNotificationExtensionService : NSObject
  15. /**
  16. 设置appkey(需要与main target中的appkey相同)
  17. */
  18. + (void)jpushSetAppkey:(NSString *)appkey;
  19. /**
  20. apns送达
  21. @param request apns请求
  22. @param completion 回调
  23. */
  24. + (void)jpushReceiveNotificationRequest:(UNNotificationRequest *)request with:(void (^)(void))completion;
  25. /**
  26. 关闭日志
  27. 默认为开启
  28. 建议发布时关闭以减少不必要的IO
  29. */
  30. + (void)setLogOff;
  31. @end