Skip to content

iOS: Incorrect BGTaskSchedulerPermittedIdentifiers Structure Generated in Info.plist #8

@aalrehn

Description

@aalrehn

There is an issue in the iOS portion of the library where the generated Info.plist contains an incorrect structure for BGTaskSchedulerPermittedIdentifiers.
iOS expects this value to be an array, but the library currently generates it as a dictionary, which causes background task registration to fail.

Generated Output (Incorrect)

<key>BGTaskSchedulerPermittedIdentifiers</key> <dict> <key></key> <string>IN_APP_ALERTS</string> </dict>

Expected Structure (Correct)

<key>BGTaskSchedulerPermittedIdentifiers</key> <array> <string>IN_APP_ALERTS</string> </array>

Because of this mismatch, iOS rejects the task registration. The runtime error produced is:

[Framework] Registration rejected; IN_APP_ALERTS is not advertised in the application's Info.plist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions