ios8 - iOS Extension - Detect "extension state changes" (Background/Foreground) -



ios8 - iOS Extension - Detect "extension state changes" (Background/Foreground) -

i have share extension implemented ios8. service uses oauth authenticate. login info utilize extension shared container app.

the problem is:

when in extension, app switch container app , logout, , app switch host app containing extension - how observe extension has re-appeared? extension relying on info nowadays in shared db between container app , extension, however, info removed when app logs out.

i have tried registering various "app notifications" such uiapplicationdidbecomeactivenotification. however, expected, these aren't called extensions.

how can observe when state of extension changes such can create extension more robust when reappears?

see

nsextensioncontext.h

ios 8.2 added number of notifications utilize extensions:

nsextensionhostdidbecomeactivenotification nsextensionhostdidenterbackgroundnotification nsextensionhostwillenterforegroundnotification nsextensionhostwillresignactivenotification

ios ios8 ios8-extension ios8-share-extension

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -