ios - Share database and methods in apple watch -


can 1 know how share database , methods between iphone app , watch kit ?

i have researched , checked below urls: http://koreyhinton.com/blog/communicate-between-watchkit-extension-and-app.html

http://fancypixel.github.io/blog/2015/03/29/share-data-between-watchkit-and-your-app-with-realm/

but gives share textual data use of method "handlewatchkitextensionrequest".

also of code in swift language.

i want know share common database , methods between iphone app , apple watch , in objective c language.

can has useful links or step-by-step guide achieve this.

thanks in advance.

but not getting clue display video on apple watch.

so, possible display mp4 video on apple watch or not possible.

please on this.

thank you.

to share data between parent ios app , watchkit extension, have set shared app group. here can use nsuserdefaults, coredata etc. normally, it's available both apps. setting long process, once hang of it's not hard.

there's information on topic in apple watch programming guide apple, , quick google search yields hundreds of results well.

as of don't believe can play video on apple watch (unless convert sequence of images, possible in parent app , send watch app). however, wwdc starts today , update watchkit more functionality. playing .mp4 videos might 1 of them.

edit 1:

wwdc 2015 finished, , of changes there affect correctness of original answer. here's updated answer incorporating of new features of watchos 2.

to share data between parent ios app , watchkit extension, can no longer set shared app group. correct way using watch connectivity framework, sending data , forth between apps. because, unlike before, watch app runs on watch opposed on iphone.

you can show short video clips on watch, using wkinterfacemovie object.

you can read that, , other additions watchos 2, in watchos 2 transition guide


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -