I want to increase the app's badge count when app receives any push notification even if the app is quit. The badge count is not maintained on server side. So I need to update app badge count increase by 1 on receive every push notification. The only way to modify push notification payload when app is in quit state is Notification Service Extension, But we can't access the UIApplication instance from extension to get app's current badge count.
Is there any way to get app badge count from notification extension
or Is there any other way to achieve this?
Please help me out from this. Thanks!