swift - auto run a function in background in ios app when local notification triggers -
i want auto run function once local notification gets triggered in ios. didreceivelocalnotification
comes in handy in scenario when app in foreground. once app in background, didreceivelocalnotification
has no affect. research found out didreceivelocalnotification
meant run in foreground only.
so, there other way achieve scenario demands? app strictly requires local notification can't use push notifications , didreceiveremotenotification
.
Comments
Post a Comment