pull notification locally on jailbroken device

前端 未结 3 1309
-上瘾入骨i
-上瘾入骨i 2020-12-05 20:29

Since the iOS framework doesn\'t allow local notifications to execute code before they are posted, I\'m looking for a way to achieve it on a jailbroken device.

3条回答
  •  鱼传尺愫
    2020-12-05 20:54

    just guessing, this is not a real answer but maybe you could use MobileSubstrate's hooking feature to hook up in the OS's notification handling process and tell the os to execute some code to check if the notification comes from your app and, if that's the case, check for an update and decide if it should show the notification?

    Or maybe you could start a background process that every X minutes checks if there is any update and if so sets an immediate local notification. Not sure how you could do this though.

提交回复
热议问题