Bespoke URL for your SDK integration

Additional step required for on-premise or private cloud integrations

If you have an on-premise or 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.

Updated 3 months ago


Bespoke URL for your SDK integration


Additional step required for on-premise or private cloud integrations

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.