I'm looking to develop a widget that interacts with the users mobile (Android | iOS). However, the registerForPhoneAppMessages method does not appear to exist in the Communications module.
Initially, I thought maybe I had targeted the wrong SDK as it was introduced in 1.4 from what I can see, but that does not appear to be the issue. The odd thing is, the setMailboxListener method also does not appear to be present in that module, which from what I understand was the depereciated method to work with BLE. An example I found even shows a block of code that try to fall-back to the old version:
if(Communications has :registerForPhoneAppMessages) {
Communications.registerForPhoneAppMessages(phoneMethod);
} else {
Communications.setMailboxListener(mailMethod);
}
Toybox.Communications has been imported in the file where the above block is located.
Anyone know where I'm going wrong here?