function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
KlaussKlauss 

SFNetworkEngine notification

Does anyone have some examples on subscribing to the notification published by sfnetworkengine? Is the mechanic the same as reachability...?
Gaurav NirwalGaurav Nirwal
Creates an SFRestRequest object. See SFRestMethod.

+ (id)requestWithMethod:(SFRestMethod)method path:(NSString *)path queryParams:(NSDictionary *)
Gaurav NirwalGaurav Nirwal
SFNetworkEngine will perform the following task by default - Detect duplication request and associate callback blocks for the duplicate operation to the existing operation - Monitor network change and publish a SFNetworkOperationReachabilityChangedNotification notification will be posted when reachability changed with SFNetworkStatus wraped in NSNumber as the [notification object] - Manange network concurrence based on network type - Automatically start background handling for running operation - Suspend all pending operations when app enters background and resumes them when app becomes active. Set suspendRequestsWhenAppEntersBackground to change this behavior - Encrypt downloaded content that will be stored as a local file. Change [SFNetworkOperation encryptDownloadedFile] to change this behavior