How-To Guide
Objective
To enable the developer to access data from the Bubbl Plugin to enhance their testing capabilities.
Audience
iOS App Developer
Bubbl provides tools that you may use for both development purposes and as a part of your app. You can use these methods from BubblSdkManager
for triggering corresponding screens.
Bubbl Inbox
The Bubbl Plugin provides a convenient view to allow users to interact with previously received messages from the Bubbl Platform. The title
can be changed by the app developer as follows:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
...
[BUMain setActivatedPayloadTitle:@"<Your titile here>"];
...
}
class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
...
BUMain.setActivatedPayloadTitle(""<Your titile here>"
...
return true
}
}
This display a user's messages received from the Bubbl Platform: Note: in this example a button exists on that connects with a myMessagesTouchUp
method.
- (IBAction)myMessagesTouchUp:(id)sender {
[BUMain.sharedInstance displayActivatedPayloads];
}
@IBAction func myMessagesTouchUp(_ sender: Any) {
BUMain.sharedInstance().displayActivatedPayloads()
}
Bubbl Data Received on Device
Not for RELEASE
This feature is to aid developer for debugging and testing purposes only, it must never be available to the App Store.
Note
The content on this view may not have been displayed to users, but is used for underlying Bubbl Plugin functionality
This displays the data received from the Bubbl Platform: Note: in this example a button exists on that connects with a payloadDataTouchUp
method.
- (IBAction)payloadDataTouchUp:(id)sender {
[BUMain.sharedInstance displayDebugCampaignsView];
}
@IBAction func payloadDataTouchUp(_ sender: Any) {
BUMain.sharedInstance().displayDebugCampaignsView()
}
Bubbl Plugin Logs
Not for RELEASE
This feature is to aid developer for debugging and testing purposes only, it must never be available to the App Store.
Note
The content on this view may not have been displayed to users, but is used for underlying Bubbl Plugin functionality
This display the log data generated from the Bubbl Plugin: Note: in this example a button exists on that connects with a showLogsTouchUp
method.
- (IBAction)showLogsTouchUp:(id)sender {
[BUMain.sharedInstance displayDebugConsoleView];
}
@IBAction func showLogsTouchUp(_ sender: Any) {
BUMain.sharedInstance().displayDebugConsoleView()
}
Updated over 1 year ago