PortSIP VoIP SDK Manual for iOS  16.2
PortSIP features our newest, supported, quality-assured VoIP SDK used by Several hundred companies around the world for easy VoIP application develop and quality-assured code.
Functions
Keep awake functions

Functions

(BOOL) - PortSIPSDK::startKeepAwake
 Keep VoIP awake in the background. If you want your application to be able to receive the incoming call while it's running in background, you should call this function in applicationDidEnterBackground. More...
 
(BOOL) - PortSIPSDK::stopKeepAwake
 Keep VoIP awake in the background. Call this function in applicationWillEnterForeground once your application comes back to foreground. More...
 

Detailed Description

Function Documentation

◆ startKeepAwake()

- (BOOL) startKeepAwake

Keep VoIP awake in the background. If you want your application to be able to receive the incoming call while it's running in background, you should call this function in applicationDidEnterBackground.

Returns
If the function succeeds, it will return value true. If the function fails, it will return value false.

◆ stopKeepAwake()

- (BOOL) stopKeepAwake

Keep VoIP awake in the background. Call this function in applicationWillEnterForeground once your application comes back to foreground.

Returns
If the function succeeds, it will return value true. If the function fails, it will return value false.