Skip to content

Any plan to add BGHealthResearchTaskRequest? #16

@gajjartejas

Description

@gajjartejas

We can now utilize BGHealthResearchTaskRequest starting from iOS 17. However, in the code, it appears to be commented out.

We can employ a similar approach for protectionTypeOfRequiredData by using NSFileProtectionType as its type:

More detail:
https://developer.apple.com/documentation/foundation/nsfileprotectiontype

/// A String indicating file protection availability required for processing.
@property (assign) NSFileProtectionType protectionTypeOfRequiredData;

Here is commented code:

    if (@available (ios 17.0, *)) {
        BGHealthResearchTaskRequest *request = [[BGHealthResearchTaskRequest alloc] initWithIdentifier:_identifier];
        request.protectionTypeOfRequiredData = NSFileProtectionNone; // pass it from js code
        return request;
    }

I attempted to build TSBackgroundFetch.xcframework, and I noticed that within the Run Script of the build target, some code paths and codesign entries are hard-coded. Consequently, I need to remove certain code fragments to facilitate the build process.

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