Send Test Messages
We are now ready to send some test messages.
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.
Open the application menu on the developer portal and click the "Push" icon as below:
Select "New Message" and input the following information:
- Set "User" as the recipient.
- 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.
- Enable "iOS". "iOS" is enabled by default.
- Enter some sting in the "Body" field.
- 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.
Here is the wrap-up: What's Next?
|<< Implement Your Application||What's Next? >>|