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

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

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -