Skip to content

Non Hardcoded Push Messages for Challenges? #5

@terhechte

Description

@terhechte

Hey, in challenge.rb, it says:

payload = {aps: {alert: "#{@sender.nick} just beat your #{leaderboard.name} score.", sound: "default"}, challenge_uuid: challenge_uuid}
        PushQueue.add(cert.pem_path, token.apns_token, payload, sandbox)

I think it would be great if the OpenKit API would allow to define the alert in the push request that's being send out by the API client. One reason why this hardcoding is troublesome is, of course, localisation, but another is that some games might want a different wording for their challenges to appear on the users home screen.

Just adding an optional "alert" key to the dictionary that is being submitted to the server (i.e. the params key in OKNetworker postToPath) would already suffice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions