Skip to content
This repository was archived by the owner on Dec 31, 2025. It is now read-only.
This repository was archived by the owner on Dec 31, 2025. It is now read-only.

Create promisifed methods for methods with callbacks #7

@blimmer

Description

@blimmer

There are a few methods in the appboy library that take anonymous functions as callbacks:

To better integrate these with Ember, we should expose methods that bind to the Ember run loop and return an RSVP promise. For instance:

// addon/utils/promisified-methods.js

export function rsvpIsPushGranted(safariPushId) {
   ... logic ...
   ... returns a promise ...
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions