Class ApnsPushService

java.lang.Object
com.bytedesk.core.push.ios.ApnsPushService

@Service public class ApnsPushService extends Object
Pushy
Author:
kefux.com on 2019/3/18
See Also:
  • Constructor Details

    • ApnsPushService

      public ApnsPushService()
  • Method Details

    • pushToBytedeskiOSRelease

      public void pushToBytedeskiOSRelease(String deviceToken, String nickname, String content)
    • pushToBytedeskiOSDebug

      public void pushToBytedeskiOSDebug(String deviceToken, String nickname, String content)
    • push

      public void push(String deviceToken, String nickname, String content, int badgeNumber, String bundleIdentifier, String build, String p12Url, String p12Password)
      推送一条消息 payloadBuilder.setContentAvailable(false);
      Parameters:
      deviceToken - token
      nickname - title
      content - content
      bundleIdentifier - bundle id
      build - debug or release
      p12Url - url
      p12Password - password
    • getApnsClient

      private com.eatthepath.pushy.apns.ApnsClient getApnsClient(String build, String p12Url, String p12Password)