Imagine you have several really popular apps, and once you develop a new must-have application, of course you want to notify your users about it! Let’s consider that one of your users is really into your products, so he or she has 5 of your apps installed on a device. If you start promoting your new product with broadcast push notifications sent to each of your apps, this user will receive the same notification five times in a row. Just imagine how irritating it might be!
That’s why we have an Application Groups feature, which allows you to send one push notification to several applications with one click, and those users who have two or more apps installed, will receive only one message!
Go to Application Groups page of your Pushwoosh Control Panel:
Click Add New to create an application group. Write a name for the group, check the applications you’d like to add from a list, and save it.
Now go to the Application Groups, and click on a group you’ve created, it will open Send Push for App Groups, where you can customize your notification just as those that you send to single apps.
Starting with Android 11, Google introduced the package visibility concept. If your app targets Android 11 (API level 30) or higher, the system makes some apps visible to your app automatically, but it filters out other apps by default.
For application groups with the Pushwoosh SDK, all apps in a group should be visible to each other; otherwise, pushes sent to a group will be sent to each app in that group separately.
To ensure your apps are visible to each other, declare their package names in each app’s AndroidManifest.xml, under the
AndroidManifest.xml<queries><package android:name="com.mycompany.myapp1" /><package android:name="com.mycompany.myapp2" /></queries>
For each app in a group, add package names of all other apps in that group. This should be done for all the apps in the group.