Send Test Messages

We are now ready to send some test messages.

Open the application menu on the developer portal and select the "Push" icon like below:

Select the "New Message" and input the following information:

  1. Set the receiver to "User".
  2. Select "Login Name" in the pull-down menu and enter the target user's name (user1). This is the user who was logging in when the initialization method KiiUser.pushInstallation().install() is executed.
  3. Toggle on the "Android".
  4. Click the "Confirm" button.

You should be able to see the MyGcmListenerService.onMessageReceived() being executed right after you click the "Confirm" button.

The code we present in this tutorial only records messages in the debug log. You might also want to use breakpoints on a debugger to check if the code works fine.

Did you get the push notification successfully? If you did not receive the push notification, check GCM Troubleshooting and solve the issue.



If you jump to this tutorial from the "Enabling the Kii Push Notification Feature" topic, go back to the topic now (Kii Cloud SDK, Thing-IF SDK).

Here is the wrap-up: What's Next?.


<< Implement Your Application What's Next? >>