Send Test Messages

We are now ready to send some test messages.

Launching your mobile app

Build and launch your mobile app on Xcode.

Note: You need to use a real device. The push notification does not work on a simulator.

When you launch the mobile app, you will be prompted to enable the push notification feature. Tap "OK" to enable it.

Sending a push message

Open the application menu on the developer portal and click the "Push" icon as below:

Select "New Message" and input the following information:

  1. Set "User" as the recipient.
  2. Select "Login Name" in the pull-down menu and enter the target user's name (user1). This is the user who was added in your initialization code.
  3. Enable "iOS". "iOS" is enabled by default.
  4. Enter some sting in the "Body" field.
  5. Click the "Confirm" button.

A push message will be sent right after you click the "Confirm" button. You should be able to see the push message output in the log.

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

If you came to this tutorial from the topic about enabling the push notification feature in the Kii Cloud SDK Programming Guide or the Thing-IF SDK Application Development Guide, go back now.

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

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