For supporting multiple app flavors (such as dev / test / prod), you have three options:
1) If all of your app flavors have different Android package names and/or iOS bundle IDs, please create separate Pushy dashboard apps for each flavor, configured with each flavor's unique package name (Android) and/or bundle ID (iOS). Then, send notifications from your backend to each app flavor by specifying its respective Pushy Secret API Key, which will be different for each app flavor.
2) If all of your app flavors share the same Android package name and/or iOS bundle ID, please create separate Pushy dashboard apps for each flavor (when prompted for the package name or bundle ID, you may enter a random string), while invoking
Pushy.setAppId() to override the default Android package name / iOS bundle ID association, and instead associate each flavor with its respective Pushy dashboard app:
Note: You can find your App ID in the App Settings page of the Pushy apps dashboard. Furthermore, please call this method before
Pushy.register() for it to take effect.
With this approach, you will need to use each flavor's respective Pushy Secret API Key to send notifications to each app flavor.
3) Finally, even if your flavors have different Android package names / iOS bundle IDs, you may also choose to associate all app flavors with the same Pushy dashboard app, by calling the
Pushy.setAppId() SDK method mentioned above. With this approach, you can use the same Pushy Secret API Key to send notifications to all of your app flavors.