Skip to content

Allow different pn_skip_pn_interval per device type or per contact #2968

@truong-hua

Description

@truong-hua

Is your feature request related to a problem? Please describe.
The https://opensips.org/docs/modules/3.2.x/registrar.html#param_pn_skip_pn_interval is very useful in case of client device can keep connectivity to OpenSIPS, espcially in case of we are using the foreground service of Android device. But the problem here is that it is not the same for iOS as Apple has native voip push notification which is designed for this purpose and there is no need of a foreground service like Android.

Therefore, it would be great if we can activate pn_skip_pn_interval for just Android device and set it to zero for iOS device. Or letting client to make that decision is good too.

About Foreground Service: https://developer.android.com/guide/components/foreground-services

Describe the solution you'd like
Allow multi values for pn_skip_pn_interval example: fcm: 150, ios: 0

Implementation

  • Component: registrar

Describe alternatives you've considered
Client device carefully handle different register message when the app is in foreground and a different one (have PN enabled) before the app is put into background (because it may be late or terminate and can not wait for server response or checking it while app in background). And of course client need to carefully handle deduplication of 2 kind of registration.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions