profile
viewpoint
Kyle Browning kylebrowning @TheAthletic, @Vapor San Francisco http://kylebrowning.com 👨🏻‍💻 Swift @TheAthletic

kylebrowning/APNSwift 369

An HTTP/2 APNS library built on swift-nio

kylebrowning/drupal-ios-sdk-example 82

An Example Project for testing your Drupal IOS SDK Setup Refer to http://github.com/workhabitinc/drupal-ios-sdk

kylebrowning/activitystream 17

Drupal Activity Stream module, creates a Friendfeed-style feed of your activity from around the web

kylebrowning/KBDrupalConnect 13

THIS HAS MOVED http://github.com/workhabitinc/drupal-ios-sdk

kylebrowning/Drupal-Questions 6

Example iPhone Application for Drupalcon Denver 2012

kylebrowning/HideIt 4

An OS X application to hide icons from your dock when they are running.

kylebrowning/CustomStatusBar 3

A status bar message window that shows over the top of your status bar. (Where the clock shows up on your iPhone)

kylebrowning/drush 1

Drush is a command-line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those who spend their working hours hacking away at the command prompt.

kylebrowning/adventofcode-2019 0

My advent of code 2019!

created repositorycassidoo/tue-due-vue

Cassidy attempts to learn Vue.js with a todo app (and a counter, to boot)

created time in an hour

startedWren6991/picodvi

started time in 4 hours

PublicEvent

startedkylebrowning/APNSwift

started time in 16 hours

created repositoryiamcal/trailhead-aura-specialist

created time in a day

created repositoryiamcal/trailhead-aura-misc

created time in a day

created repositoryiamcal/trailhead-data-integration-specialist

created time in a day

startedmikecao/umami

started time in a day

created repositorysmilesun10/WorldTrotter

exercise

created time in 4 days

created repositoryjrozner/msp430-dis

created time in 4 days

MemberEvent

created repositoryiamcal/trailhead-apex-specialist

created time in 9 days

created repositoryiamcal/trailhead-apex-basics

created time in 9 days

created repositoryobjcio/S01E240-testing-animations-with-previews

created time in 9 days

created repositoryobjcio/S01E239-designing-with-previews

created time in 9 days

created repositoryobjcio/S01E237-swiftui-layout-explained-grid-with-fixed-columns

created time in 10 days

fork geerlingguy/RaspberryPiCM4Handheld7Inch

A single source for all of the information around my Raspberry Pi CM4 7" Handheld

fork in 10 days

startedjuckettd/RaspberryPiCM4Handheld7Inch

started time in 10 days

created repositoryiamcal/trailhead-apex-misc

created time in 11 days

created repositoryiamcal/trailhead-lwc-specialist

created time in 12 days

PublicEvent

issue commentkylebrowning/APNSwift

[BUG] 2.2.0 Infinite Recursion

@kylebrowning and @nicktrienensfuzz I tried to explain the issue and give a fix here.

https://github.com/vapor/apns/pull/27

nicktrienensfuzz

comment created time in 12 days

issue commentkylebrowning/APNSwift

[BUG] 2.2.0 Infinite Recursion

I'm reproducing it now I'm working on a fix.

nicktrienensfuzz

comment created time in 12 days

issue closedkylebrowning/APNSwift

[BUG] 2.2.0 Infinite Recursion

Describe the bug send class it's self to maximum stack size in xcode

To Reproduce included via .package(url: "https://github.com/vapor/apns.git", from: "1.0.0")

app.get("test") { req -> String in
        try app.apns.send(
            .init(title: "Hello", subtitle: "This is a test from vapor/apns"),
            to: "6a9201adcaa835-------------3"
        ).wait()
        return "Hello, world!"
}

This function seems to call it's self forever

public func send(rawBytes payload: ByteBuffer,
                     pushType: APNSwiftConnection.PushType = .alert,
                     to deviceToken: String,
                     expiration: Date? = nil,
                     priority: Int? = nil,
                     collapseIdentifier: String? = nil,
                     topic: String? = nil,
                     logger: Logger? = nil,
                     apnsID: UUID? = nil) -> EventLoopFuture<Void> {
        return self.send(
            rawBytes: payload,
            pushType: pushType,
            to: deviceToken,
            expiration: expiration,
            priority: priority,
            collapseIdentifier: collapseIdentifier,
            topic: topic,
            logger: logger ?? self.logger,
            apnsID: apnsID)
    }

Expected behavior Hope to see a sent notification

Screenshots Screen Shot 2021-01-08 at 11 07 45 AM

Platform:

  • OS: mac os x 11.1 (20C69)
  • Version [e.g. 16.04] Ran from xcode 12.3

Additional context Add any other context about the problem here.

closed time in 13 days

nicktrienensfuzz

issue commentkylebrowning/APNSwift

[BUG] 2.2.0 Infinite Recursion

Thank you so much for your quick response

nicktrienensfuzz

comment created time in 13 days

issue commentkylebrowning/APNSwift

[BUG] 2.2.0 Infinite Recursion

it is working now, using 2.1.0 Looks like it might have been bad usage on my part too, I was using that in a route so I should have been accessing the .apns property on the Request

   app.get("test") { req in
        req.apns.send(
            .init(title: "Hello", subtitle: "This is a test from vapor/apns"),
            to: "6a9201adcaa8358e92a01d5e1ba0ccdaad061ccfb7797293da53df807c1c53"
        ).map { "sent" }
    }
nicktrienensfuzz

comment created time in 13 days

issue commentkylebrowning/APNSwift

[BUG] 2.2.0 Infinite Recursion

I used this sample code from the vapor doc site, https://docs.vapor.codes/4.0/apns/

try app.apns.send(
            .init(title: "Hello", subtitle: "This is a test from vapor/apns"),
            to: "6a9201adcaa835-------------3"
        )
nicktrienensfuzz

comment created time in 13 days

startedsindresorhus/meow

started time in 13 days

more