The following are the best steps and practices for setting up a test for push notifications.
When setting up your first In-App test push, TUNE recommends setting up two separate mobile apps in the platform; one for Production and one for Development. Please pay special attention to the recommendation to create separate Development and Production apps within your TMC account so that you can test everything completely without impacting your production data. Debug macros can be set to automate this process.
- Development app: When the application is a development app, it is past most testing and is ready for production. Typically, developers use development mode as a local version of the application that multiple developers can maintain, and sync under a controlled version.
- Production app: When the application is in production stage and is used on release. TUNE recommend doing most changes in the development app, verify that everything is working as planned, and then implementing the changes to the production app.
The main distinction for both the production app and the development app is the push certificate. The push certificate can be setup as either a development certificate or a production certificate. Initially, TUNE recommends working with the development certificate first. In order for your push test to work, verify that the app build and the certificate type match (Dev Build-Development Certificate OR Prod Build-Production Certificate).
Important Note: If you are building and testing your application through Xcode, your application resides in the development build. If your application is in production and in the app store, your application resides in the production build. These distinctions are key to a successful push test!
The testing process for Android is simplified because it does not have distinguishing certificates. If you are using Firebase to generate your device tokens you will rely on the registration_id variable with our
Tune.setPushRegistrationId(String registration_id) method.
The following section outlines how to retrieve the Firebase registration_id: https://firebase.google.com/docs/cloud-messaging/android/client.
Once you have the registration_id value, you can insert that value in our Tune method:
Tune.setPushRegistrationId(registration_id) and retrieve the device token. If this is your first time setting up push and are only using In-App Marketing as your push provider, use the
Important Note: When setting up Android, be sure that you are using the correct setPush method (
setPushNotificationSenderId). These distinctions are key to a successful push test!
Once you’ve received your first successful push test, you can get started with your campaign testing. When starting your very first push test, there are a few steps TUNE recommends or the best test experience. Before we get started, we will need to register your device as a test device. Please go to the Attribution Analytics page and on the left hand menu and select Test profile. From there, add your device's information in the Test Profile. For more information on this topic, please see our Creating a Test Profile article in TUNE Help.
- If you need help finding the
google_aidfor your device, please follow this documentation: https://help.tune.com/marketing-console/finding-your-android-device-identifiers/
- If you need help finding the
ios_ifaor IDFA for your device, please follow this documentation: https://help.tune.com/marketing-console/finding-your-ios-device-identifiers/
Now that you have a test device set up, you can move onto the In-App Marketing platform page. Once you are in the IAM platform page and have set up your application, you can begin testing your campaigns on your test device.
Test your campaign on your device:
- Open In-App Marketing.
- Go to the Messaging tab on the right.
- Create a campaign. Once you've composed a campaign and are just ready to send out your notifications, you can test your campaign on your test device.
- Under the compose tab, you will see a test device on the right. From there you can see how your message appear on a device. For real time testing, select from the device you want to test from the drop down.
- Select your test device and send yourself a test message!
For more information on creating and testing your campaigns, please see Sending a Test Message section in our Creating a Push Campaign article.
For information on testing In-App Marketing using