Bespoke URL for your SDK integration

Additional step required for private cloud integrations

If you have a private cloud deployment of the Xtremepush platform, then you will have a bespoke URL for your version of the platform which will need to be set when integrating.

You may have received the bespoke URL from your Account Manager during setup for private cloud, or you may have chosen it yourself for an on-premise installation.

Android

In the Latest SDK (and v4.0.0 and up):

new PushConnector.Builder(XPUSH_APP_KEY, GOOGLE_PROJECT_NUMBER)
 .setServerUrl("https://yourbespokeurl.com")
 .create(this);

For SDK Versions prior to v4.0.0:

// INITIALISE THE XTREMEPUSH CONNECTOR HERE
    mPushConnector = new PushConnector.Builder("XTREME_PUSH_APP_KEY", "GOOGLE_PROJECT_NUMBER")
    .setServerUrl("https://yourbespokeurl.com")
    .create(this);

iOS

There are two ways to achieve this on iOS:

  • You can set the url using the setServerURL method:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
    XPush.appKey = "APP_KEY_FROM_NEW_DASHBOARD"
    XPush.serverURL = "https://yourbespokeurl.com"
    XPush.applicationDidFinishLaunching(withOptions: launchOptions)
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [XPush setAppKey: @"APP_KEY_FROM_NEW_DASHBOARD"];
    [XPush setServerURL: @"https://yourbespokeurl.com"]; 
    [XPush applicationDidFinishLaunchingWithOptions:launchOptions];
}
  • Or in your Info.plist add the following key-value pair. In the key field add XtremePushServerURL and set it to https://yourbespokeurl.com.