How can I receive Phone Notifications on my app, things like CallerID or SMS

Dear All,

I was looking for finding a way to get a notification on my app (using any Garmin API), to capture events like "Incoming Telephone Call" with CallerID.

I tried the Communications object but that only talks about onComplete, onError, and RegisterForPhoneAppMessages, tried all those, I still cannot get any triggers there. 

I also noticed on the Simulator there is a "Simulation -> Push Notification" menu item, but that goes nowhere when I use it (none of the above captures it) and there are no documentations on how to capture that neither.

I wonder if anyone have any ideas on how to get this done, would be great.

Thanks

  • I eventually managed to do:

    Background.registerForPushNotificationEvent();

     
    On the background process, this causes the simulator to re-register each time I sent out a push notification, but then on the phone nothing happened.
    I also coded the following:
    function onPushNotification(notification)
    {
       System.println("Push Triggered");
    }
    But that function NEVER get called despite having the Delegate set correctly. 
    No good documentation on the Push/Notifications and how it's supposed to work, no examples on how to implement, no info on why they added "Push Notification" on the Simulator without any details on how it's supposed to work, no info on why the watch behaves completely differently than the simulator, no info on how to read phone push notifications.... and not much information on the product pages... 
    I got so frustrated eventually with this watch (forerunner 245), and it's API all along that I felt it's absolutely useless. 
    I wrote my feedback online and now returning the product to the store. 
    I wasted about a week trying to get this to work, what a waste of time that was... 
  • If I recall, Push Notifications aren't generally available.  You need Garmin approval.

    Here's a thread from a few years back about it,

    https://forums.garmin.com/developer/connect-iq/f/discussion/169101/what-happened-to-push-notifications-in-sdk-3-0-0