iphone - Problem in getting file path within the app -
everyone
i working on app supports viewing of document files (doc, text , others). have registered app these file types, if emails document file me, use didfinishlaunchingwithoptions method path of file. problem if application running in background? how file path caused app become active opening file?
best regards
use "application:openurl:sourceapplication:annotation:" app delegate; following text taken apple's documentation
application:openurl:sourceapplication:annotation:
asks delegate open resource identified url.- (bool)application:(uiapplication *)application openurl:(nsurl *)url sourceapplication:(nsstring *)sourceapplication annotation:(id)annotation
discussion
if application launched result of application requesting open url resource, uiapplication first sends application application:didfinishlaunchingwithoptions: message , invokes method. method supplies delegate of handling application bundle id of source application annotation information application. if application running when receives request open url, method called application:didfinishlaunchingwithoptions: isn’t.
if method not implemented, uiapplication calls application:handleopenurl: (if implemented). should implement method in preference application:handleopenurl:.
there no matching notification method.
Comments
Post a Comment