Failing to Push to Fire8 Tablets

Posted on
Tue Oct 08, 2019 10:55 am
Busta999 offline
User avatar
Posts: 628
Joined: Mar 30, 2016
Location: Wales UK

Failing to Push to Fire8 Tablets

Updating all the screens that have been using DomoPad for a couple of years.

So many thanks for that.

Looking at updating push notifications to the Amazon Tablets.

So far unable to get

Notifications
Speak Announcements
Send Control Page
Request Status
Example of error encounter with High Debugging on.

I am running 2.2.6 DomoPad Plugin. 7.4 Indigo. on MacOS 10.12.6.

Code: Select all
   Action Group                    Lounge Tablet - Test Action
   Domotics Pad Mobile Client Threaddebug Queuing push notification command for 1017838625
   Domotics Pad Mobile Client Threaddebug Plugin Command queue has 1 command(s) waiting
   Domotics Pad Mobile Client Threaddebug Push Notification Send Command: DevicePairID=2cLQwM5ZmGhGAIfeuNJm; Type=normal; Message=test
   Domotics Pad Mobile Client Threaddebug Push Notification Payload=action2Name=&action2Group=&notificationType=Alert&priority=normal&action1Group=&action1Name=&devicePairingId=2cLQwM5ZmGhGAIfeuNJm&message=test
   Domotics Pad Mobile Client Threaddebug Push notification Response: [503] {
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "backendError",
    "message": "com.google.android.gcm.server.InvalidRequestException: HTTP Status Code: 301"
   }
  ],
  "code": 503,
  "message": "com.google.android.gcm.server.InvalidRequestException: HTTP Status Code: 301"
 }
}
   Domotics Pad Mobile Client ErrorError sending push notification.


Is this a problem with Fire Tablets or is there something else going wrong here?

Any pointers welcome.

Thanks

Posted on
Tue Oct 08, 2019 3:25 pm
RogueProeliator offline
User avatar
Posts: 2244
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Failing to Push to Fire8 Tablets

Is this a problem with Fire Tablets or is there something else going wrong here?

That looks like your Fire tablets are holding on to an old push notification token that is no longer in use (Google depreciated that service). However, the latest versions of Domotics Pad (current is v1.9.2) are using the new servers. Try on just one tablet since it is a bit of a pain, but most users have succeeded in getting connected to the new server by uninstalling and re-installing the application. Note that this won't come back, this is just an artifact of the old library having been connected.

In the not-TOO-distant future I will have in-house direct connections available for push notifications (i.e. not going through Google's servers, it will talk directly to the IP). But that is a little bit off (in the planning and design phase now).

Posted on
Wed Oct 09, 2019 4:21 am
Busta999 offline
User avatar
Posts: 628
Joined: Mar 30, 2016
Location: Wales UK

Re: Failing to Push to Fire8 Tablets

Excellent !!!

Progress - thanks. Uninstalled, re-installed 1.9.2 - re-paired.

Sending a message to Speak is very cool and works.

Still running into some issues.

1. Request Device Status results in:-

Code: Select all
 
   Domotics Pad Mobile Client DebugPlugin preferences updated
   Domotics Pad Mobile Client      Debugging enabled... remember to turn off when done!
   Domotics Pad Mobile Client DebugCurrent IWS Plugin: v1.3
   Domotics Pad Mobile Client DebugIncluded IWS Plugin: v1.3
   Action Group                    Lounge Tablet - Test Action
   Domotics Pad Mobile Client ErrorError in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 322, in processRequestDeviceStatusNotification
NameError: global name 'requestDeviceStatusNotification' is not defined

 


2. Send Notification - with button actions
Code: Select all
Domotics Pad Mobile Client Threaddebug Call to validate action: sendPushNotification
   Action Group                    Lounge Tablet - Test Action
   Domotics Pad Mobile Client Threaddebug Queuing push notification command for 97002777
   Domotics Pad Mobile Client Threaddebug Plugin Command queue has 1 command(s) waiting
   Domotics Pad Mobile Client Threaddebug Push Notification Send Command: DevicePairID=s8KAAQcpoouubzmbanZ4; Type=normal; Message=test test
   Domotics Pad Mobile Client Threaddebug Push Notification Send Action 1: Lounge Lights On => 376660060
   Domotics Pad Mobile Client Threaddebug Push Notification Send Action 2: Lounge Lights Off => 546891607
   Domotics Pad Mobile Client Threaddebug Push Notification Payload=action2Name=Lounge+Lights+Off&action2Group=546891607&notificationType=ActionAlert&priority=normal&action1Group=376660060&action1Name=Lounge+Lights+On&devicePairingId=s8KAAQcpoouubzmbanZ4&message=test+test
   Domotics Pad Mobile Client Threaddebug Push notification Response: [204]
   Domotics Pad Mobile Client DebugPush notification sent successfully

This is probably because I don't understand how this should operate/does Fire Tablet Support - i.e. I'll keep playing with it, but in the tests I have done Notifications sometimes just don't get through or have a very significant delay (5 or more mins) also when two buttons are shown in the notification only the second one performs the action even if you press the 1st .
Indigo - Domopad - Notification.jpeg
Indigo - Domopad - Notification.jpeg (183.1 KiB) Viewed 155 times

Not an issue at all and most probably user error :-)

3. Send Control Page

Code: Select all
 Action Group                    Lounge Tablet - Test Action
   Domotics Pad Mobile Client Threaddebug Queuing control page display request notification command for 97002777
   Domotics Pad Mobile Client Threaddebug Plugin Command queue has 1 command(s) waiting
   Domotics Pad Mobile Client Threaddebug Control Page Display Notification Send Command: DevicePairID=s8KAAQcpoouubzmbanZ4; Page=441807091
   Domotics Pad Mobile Client Threaddebug Push Notification Payload=pageName=Heating%2FHot+Water+%26+Radiator+Demand&pageRequested=441807091&devicePairingId=s8KAAQcpoouubzmbanZ4
   Domotics Pad Mobile Client Threaddebug Control page display notification response: [204]
   Domotics Pad Mobile Client DebugControl page display notification sent successfully
   Domotics Pad Mobile Client      Process command: updateMobileDeviceStates


Nothing changed on the Fire8 tablet it did not change Control Page

None of which are issues I can't work around and are most likely User Error

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest