addAlternativeAppCode
Adds an alternative Pushwoosh application code for device registration.
This method allows registering the device with multiple Pushwoosh applications simultaneously. This is useful for white-label apps, multi-brand applications, or when you need to send pushes from different Pushwoosh applications to the same device. Example:
// Primary app code is set in AndroidManifest.xml or via setAppId()
Pushwoosh.getInstance().setAppId("XXXXX-XXXXX");
// Add alternative app codes for white-label brands
Pushwoosh.getInstance().addAlternativeAppCode("BRAND1-APPID");
Pushwoosh.getInstance().addAlternativeAppCode("BRAND2-APPID");
// Device will now receive pushes from all three applications
Pushwoosh.getInstance().registerForPushNotifications();
Content copied to clipboard
Parameters
appCode
Alternative Pushwoosh application code to add