I would like to write an iOS app (run in my iPad) to receive my notification message from my iphone, is it possible?
func centralManagerDidUpdateState(central: CBCentralManager!) {
switch central.state {
case CBCentralManagerState.PoweredOn:
let services = ["7905F431-B5CE-4E99-A40F-4B1E122D00D0"]
self.centralManager.scanForPeripheralsWithServices(services, options: nil)
default: break
}
}
I try to scan service from my ipad using the above code but nothing return, is it because the iphone and ipad already paired because they are using the same appleID?
any hints I could achieve this?
I am new to iOS programming, can anyone help me with this? Should the app in iPad act as peripheral or central? I'm a bit loss