Receive ANCS message from iPad

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

I believe the issue is that Apple filtered out the ANCS service from their GATT. I've connected to my iOS and scanned the services directly from another Apple device (Mac and iPhone) that is not using the same AppleID, but the ANCS service doesn't appear on the listed services. However, when I tried running a bluetooth scan from an Android, I was able to see the ANCS. I do not see any documentation that proves this case, but this is what I have found. I believe you will need to use a different peripheral other than a Apple device to connect and read from an ANCS.

Receive ANCS message from iPad
 
 
Q