Skip to content

Apple watch swift programming : Watchkit communication with Parent App

Notifications You must be signed in to change notification settings

rajeshbeats/AppleWatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

AppleWatch Programming

Apple Watch and iPhone app (Parent App) communication sample application

AppDelegate.swift - Parent AppDelegate class WatchKit Listner

func application(application: UIApplication, handleWatchKitExtensionRequest userInfo: [NSObject : AnyObject]?, reply: (([NSObject : AnyObject]!) -> Void)!){

  //handle watchkit communication
}

In WatckKit Extension, Communicate to parent app using the below api

WKInterfaceController.openParentApplication(userInfo, reply: { (response : [NSObject : AnyObject]!, error:NSError!) -> Void in
            
            //respons from parent app
       
  })

About

Apple watch swift programming : Watchkit communication with Parent App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages