For supporting multiple app flavors (such as dev / test / prod), you have two options:
1) Create additional Pushy apps in the Pushy dashboard 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) Associate all flavors with the same Pushy dashboard app. With this approach, you can use the same Pushy Secret API Key to send notifications to all of your app flavors. Please invoke the following method in all of your apps:
Android:
Pushy.setAppId("your-app-id", getApplicationContext());
iOS:
pushy.setAppId("your-app-id");
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.
Comments
0 comments
Please sign in to leave a comment.