To get the IP address of the Android device follow these steps:

The iDigi Connector for Android is able to receive 2 types of notifications from iDigi while it is running. It is not necessary to have any iDigi for Android applications running in order to listen for these notifications, because they are directly handled by the iDigi service. These notifications are:

The iDigi Android notification is a standard Android notification. When received, it is placed in the Android status bar like any other notification. It remains in the Android status bar until you remove it manually.

Follow these steps to send an iDigi Android notification to an Android device:

  1. Click the iDigi ME button located in the main tool bar to directly login to iDigi using your configured iDigi account.

    iDigi ME

    Tip

    If you are not able to see the iDigi ME icon in the main toolbar, you may need to reset your IDE's perspective. To do so, go to Window > Reset perspective... and click OK.


  2. Once you are logged in to your account, navigate to the Web Services Console by selecting its tab.

    Web Services Console

  3. Before generating a web services request you need to select the device or devices you will send the iDigi Android notification to. To do so, click the SCI Targets button. A new window is displayed.

    SCI Targets - Select

  4. Click the Add Targets drop-down menu and select your device from the list, then click the Add button.

    SCI Targets - Device

  5. Click OK to return to the Web Services Console. From the Examples menu select the SCI > Run command on device option.

    Examples select

    A query template will be automatically generated in the Web Services Console editor:

    Template

  6. Locate the do_command request and change the target value from cli to idigi_notification. To do so, replace the following line:

    Host session

    <do_command target="cli">


    With this one:

    Host session

    <do_command target="idigi_notification">


  7. Now set Hello from iDigi! as command data. To do so replace the following line:

    Host session

    <cli>who</cli>


    With this one:

    Host session

    Hello from iDigi!


    The text you have written is the text of the notification. The code should now be similar to this:

    Template - Modified

  8. Send the query to iDigi by clicking the Send button. If you are asked for your iDigi credentials fill them in and click OK to complete the query transfer.

    iDigi credentials

  9. Your device should have received the notification. You will know when the notification has been received because there will be an iDigi Android notification icon (an envelope) next to the iDigi Connector for Android icon in the Android status bar.

    iDigi Android notification

  10. If you display the Android status bar (sliding it down) you will see that the iDigi Android notification has been received. Click it if you want to remove it.

    iDigi Android notification

The iDigi popup notification is a toast message that displays the text sent from iDigi. As any other toast message it only remains in the device's screen for some seconds. Therefore, you will not have any way of knowing if the notification was received, other than looking at the screen at the moment the iDigi popup notification is sent.

Follow these steps to send an iDigi popup notification to an Android device:

  1. Click the iDigi ME button located in the main tool bar to directly login to iDigi using your configured iDigi account.

    iDigi ME

    Tip

    If you are not able to see the iDigi ME icon in the main toolbar, you may need to reset your IDE's perspective. To do so, go to Window > Reset perspective... and click OK.


  2. Once you are logged in to your account, navigate to the Web Services Console by selecting its tab.

    Web Services Console

  3. Before generating a web services request you need to select the device or devices you will send the iDigi popup notification to. To do so, click the SCI Targets button. A new window is displayed.

    SCI Targets - Select

  4. Click the Add Targets drop-down menu and select your device from the list, then click the Add button.

    SCI Targets - Device

  5. Click OK to return to the Web Services Console. From the Examples menu select the SCI > Run command on device option.

    Examples select

    A query template will be automatically generated in the Web Services Console editor:

    Template

  6. Locate the do_command request and change the target value from cli to idigi_popup. To do so, replace the following line:

    Host session

    <do_command target="cli">


    With this one:

    Host session

    <do_command target="idigi_popup">


  7. Now set Hello from iDigi! as command data. To do so replace the following line:

    Host session

    <cli>who</cli>


    With this one:

    Host session

    Hello from iDigi!


    The text you have written is the text of the notification. The code should now be similar to this:

    Template - Modified

  8. Send the query to iDigi by clicking the Send button. If you are asked for your iDigi credentials fill them in and click OK to complete the query transfer.

    iDigi credentials

  9. Your device should have received the notification displaying it in a toast message.

    iDigi popup notification

You can configure the iDigi Connector for Android to not listen for iDigi notifications. To do so, open the iDigi Connector for Android then go to General configuration.

iDigi Connector for Android

Here you can configure the notifications you want to listen for.

iDigi Connector for Android notifications configuration

You can configure the iDigi Connector for Android to be auto-started whenever the device has internet access through any interface: 3G, Wifi, Ethernet, etc. To do so, open the iDigi Connector for Android then go to iDigi preferences.

iDigi Connector for Android general configuration

The setting called Autostart iDigi configures the service to be executed automatically when the device has internet access.

iDigi Connector for Android iDigi configuration