Pushwoosh (Beta)
This guide describes how to add and configure Pushwoosh integration.

About Integration

Apphud can send all user events in Pushwoosh, which you can use in Journeys builder and create your custom push company.
Step 1
Step 2
Step 3
Step 4
Step 5
  • Integrate Apphud SDK on iOS or Android.
  • Integrate Pushwoosh.
    Note :  If you haven't got a push certificate, Pushwoosh can generate it automatically. Push notification request will appear on app launch by default.
  • At Apphud go to "Integrations" section and add Pushwoosh:
  • Enter Application ID, Sandbox Application ID (optional), :
  • You can enter your custom event names or disable some:
  • Enable integration and click Save:

Match User IDs

By default, when an app with Pushwoosh SDK is launched for the first time, it sets a device HWID as a UserID. You can call setUserId on a login to set any required value to associate a device with a particular user. When a user logs out, you can reset this value to a default one with another setUserId call, e.g. to an initial HWID value.
You can set Apphud User ID property to Pushwoosh's setUserId function:
Swif
1
// assuming both Apphud and Pushwoosh SDKs are initialized:
2
Pushwoosh.sharedInstance()?.setUserId(Apphud.userID())
Copied!

Custom events

If Apphud events are not enough for you, you can add Pushwoosh Recommended, General and Custom Events in your code.
  • Create custom event in Puswoosh -> Dashboard -> Events -> Add event
  • Use it in your App:
Swift
Objective-C
Java
1
// How to integrate Event into your app
2
let attributes: [String : Any] = [
3
"Custom event attribute" : "string value"
4
]
5
PWInAppManager.shared().postEvent("Custom event name", withAttributes: attributes)
Copied!
1
// How to integrate Event into your app
2
NSDictionary *attributes = @{
3
@"Custom event attribute" : @"string value"
4
};
5
[[PushNotificationManager pushManager] postEvent:@“eventName” withAttributes:attributes];
Copied!
1
// How to integrate Event into your app
2
TagsBundle attributes = new TagsBundle.Builder()
3
.putString("Custom event attribute", "string value")
4
.build();
5
6
PushwooshInApp.getInstance().postEvent("Custom event name", attributes);
Copied!
Last modified 5d ago