Skip to content

Ephemeral push notifications authorization status #100

@IsaiahJTurner

Description

@IsaiahJTurner

There seems to be a discrepancy between the PustEnablement status options in the iOS SDK and the ones in the node API.

In the node SDK, there are two statuses both "UNAUTHORIZED" and "DENIED" and it's unclear what "UNAUTHORIZED" is since that is not a status option within the Apple Docs.

Additionally, the node SDK lacks type support for EPHEMERAL.

Here are the statuses in the Apple Documentation:
https://developer.apple.com/documentation/usernotifications/unauthorizationstatus

Here is what is in the Kaviyo iOS SDK:
https://github.com/klaviyo/klaviyo-swift-sdk/blob/80cec2cc2dbfd7a17b9a971b3ffe1268d86576a6/Sources/KlaviyoCore/Models/PushEnablement.swift#L14

Here is what is in the TypeScript definition:

'enablementStatus'?: PushTokenCreateQueryResourceObjectAttributes.EnablementStatusEnum | 'AUTHORIZED' | 'DENIED' | 'NOT_DETERMINED' | 'PROVISIONAL' | 'UNAUTHORIZED' | null = PushTokenCreateQueryResourceObjectAttributes.EnablementStatusEnum.Authorized;

There is no option for EPHEMERAL and an unexpected option for UNAUTHORIZED.

Also somewhat related and worth noting that the iOS sdk does not seem to use "iPadOS" as a platform option despite this being provided as an option in the OpenAPI spec.

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