mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-09 22:36:01 +05:45
* Add card scene to storyboard, use IBDesignable rounded corners view * Use IBdesignable rounded corners view for modal message * Add card message type * Parse card message type, add new fields for secondary actions and landscape URLs to view model classes * Display a really basic card message * Naive landscape image loading (needs error handling) * Quick bug fix * Wire up Display to show cards * Wire up Display to show cards * Fix tablet width * Pick right image for orientation * Remove placeholder image sizing constraints at build time * Add more test functionality * Better image sizes * Size message image out * Switch to body text view rather than body label * Make the body text view scrollable. Set correct text color on button. * Hook up buttons and text color * Include action URL in messageClicked callback * Fix action URL * Update pod specs * Update message clicked delegate to pass an action object, not just the actionURL * Change podspec versions back, hook up background color * Don't animate scroll to top on scroll view * Fix text scrolling bug * Fix portrait and landscape fetching code. Fix background color bug * Flesh out FIRIAMMessageContentDataWithImageURLTests * Fix up FIRIAMFetchFlowTests * Fix up FIRIAMMessageClientCacheTests * Fix up FIRIAMMessageDisplayForTesting * Fix fetching in FIRIAMMessageContentDataWithImageURL * Tests for message parsing * Fix up view controllers for banner, modal, image only. Add a view controller for testing card * Add required vertical compression resistance for primary and secondary action button * Add UI tests for card view controller * Add back deprecated messageClicked: method, call it if the newer method isn't implemented. Make all display delegate methods optional. * Run scripts/styles.sh * Documentation cleanup * Fix style in FIRIAMMessageContentDataWithImageURLTests.m * Add missing copyright notices * Bump versions of both FIAM SDKS * Remove default.profraw * Address some logging punctuation nits. Cancel landscape image load if portrait image load fails. * Add missing error flow in image fetch. A few comment nits. * Shorten up init method for CardDisplayMessage * Documentation updates * Deintegrate cocoa pods * Include landscape image data in test image load class * Fix Swift naming for InAppMessagingAction in UItests * Remove card message initializer from public API, place into a private header * Mark some properties on the card object as readonly that should've been already, Find a way to initialize a card message in the UI tests. * Bump dependency on InAppMessaging given changes * Bump versions in podspecs for both SDKs * Make all view model properties for message subclasses readonly * Revert changes to other message subclasses * Make card view model properties readonly * Run styles.sh
221 lines
5.6 KiB
Plaintext
221 lines
5.6 KiB
Plaintext
{
|
|
"messages": [
|
|
{
|
|
"vanillaPayload": {
|
|
"campaignId": "13313766398414028800",
|
|
"campaignStartTimeMillis": "1523986039000",
|
|
"campaignEndTimeMillis": "1526986039000",
|
|
"campaignName": "first campaign"
|
|
},
|
|
"content": {
|
|
"modal": {
|
|
"title": {
|
|
"text": "I heard you like In-App Messages",
|
|
"hexColor": "#000000"
|
|
},
|
|
"body": {
|
|
"text": "This is message body",
|
|
"hexColor": "#000000"
|
|
},
|
|
"imageUrl": "https://image.com/5GCaq8sWMgk",
|
|
"actionButton": {
|
|
"text": {
|
|
"text": "Learn More",
|
|
"hexColor": "#ffffff"
|
|
},
|
|
"buttonHexColor": "#000000"
|
|
},
|
|
"action": {
|
|
"actionUrl": "https://www.google.com"
|
|
},
|
|
"backgroundHexColor": "#fffff8"
|
|
}
|
|
},
|
|
"priority": {
|
|
"value": 1
|
|
},
|
|
"triggeringConditions": [
|
|
{
|
|
"fiamTrigger": "ON_FOREGROUND"
|
|
},
|
|
{
|
|
"event": {
|
|
"name": "jackpot"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"vanillaPayload": {
|
|
"campaignId": "9350598726327992320",
|
|
"campaignStartTimeMillis": "1523985333000",
|
|
"campaignEndTimeMillis": "9223372036854775807",
|
|
"campaignName": "Inception1"
|
|
},
|
|
"content": {
|
|
"modal": {
|
|
"title": {
|
|
"text": "Test 2",
|
|
"hexColor": "#000000"
|
|
},
|
|
"body": {
|
|
"hexColor": "#000000"
|
|
},
|
|
"imageUrl": "https://image.com/5GCaq8sWMgk.jpg",
|
|
"actionButton": {
|
|
"text": {
|
|
"text": "Learn More",
|
|
"hexColor": "#ffffff"
|
|
},
|
|
"buttonHexColor": "#000000"
|
|
},
|
|
"action": {
|
|
"actionUrl": "https://www.google.com"
|
|
},
|
|
"backgroundHexColor": "#ffffff"
|
|
}
|
|
},
|
|
"priority": {
|
|
"value": 1
|
|
},
|
|
"triggeringConditions": [
|
|
{
|
|
"fiamTrigger": "ON_FOREGROUND"
|
|
},
|
|
{
|
|
"event": {
|
|
"name": "jackpot"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"vanillaPayload": {
|
|
"campaignId": "14819094573862617088",
|
|
"campaignStartTimeMillis": "1519934825000",
|
|
"campaignEndTimeMillis": "9223372036854775807",
|
|
"campaignName": "Top banner"
|
|
},
|
|
"content": {
|
|
"banner": {
|
|
"title": {
|
|
"text": "Hey everybody!",
|
|
"hexColor": "#000000"
|
|
},
|
|
"body": {
|
|
"text": "This is an in-app message! Now go to Screen 2!",
|
|
"hexColor": "#000000"
|
|
},
|
|
"imageUrl": "https://image.com/5YYCaq8sWMgk.png",
|
|
"action": {
|
|
"actionUrl": "https://test-app.firebaseapp.com/Calculator/screen2"
|
|
},
|
|
"backgroundHexColor": "#ffffff"
|
|
}
|
|
},
|
|
"priority": {
|
|
"value": 1
|
|
},
|
|
"triggeringConditions": [
|
|
{
|
|
"event": {
|
|
"name": "jackpot"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"vanillaPayload": {
|
|
"campaignId": "5595722537007841280",
|
|
"campaignStartTimeMillis": "1519934650000",
|
|
"campaignEndTimeMillis": "9223372036854775807",
|
|
"campaignName": "Ducks on foreground"
|
|
},
|
|
"content": {
|
|
"modal": {
|
|
"title": {
|
|
"text": "Look, it's a duck!",
|
|
"hexColor": "#000000"
|
|
},
|
|
"body": {
|
|
"text": "It's a very nice duck.",
|
|
"hexColor": "#000000"
|
|
},
|
|
"imageUrl": "https://image.com/5YYCaq8sWMgkff.png",
|
|
"actionButton": {
|
|
"text": {
|
|
"text": "Go to Google.com",
|
|
"hexColor": "#ffffff"
|
|
},
|
|
"buttonHexColor": "#000000"
|
|
},
|
|
"action": {
|
|
"actionUrl": "https://www.google.com"
|
|
},
|
|
"backgroundHexColor": "#ffffff"
|
|
}
|
|
},
|
|
"priority": {
|
|
"value": 1
|
|
},
|
|
"triggeringConditions": [
|
|
{
|
|
"fiamTrigger": "ON_FOREGROUND"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"vanillaPayload": {
|
|
"campaignId": "5432869654332221",
|
|
"campaignStartTimeMillis": "1519934650000",
|
|
"campaignEndTimeMillis": "9223372036854775807",
|
|
"campaignName": "Super Bowl LIV"
|
|
},
|
|
"content": {
|
|
"card": {
|
|
"title": {
|
|
"text": "Eagles are going to win",
|
|
"hexColor": "#004953"
|
|
},
|
|
"body": {
|
|
"text": "Start of a dynasty.",
|
|
"hexColor": "#004953"
|
|
},
|
|
"portraitImageUrl": "https://image.com/birds.png",
|
|
"landscapeImageUrl": "https://image.com/ls_birds.png",
|
|
"primaryActionButton": {
|
|
"text": {
|
|
"text": "Win Super Bowl LIV",
|
|
"hexColor": "#000000"
|
|
},
|
|
"buttonHexColor": "#ffffff"
|
|
},
|
|
"secondaryActionButton": {
|
|
"text": {
|
|
"text": "Win Super Bowl LV",
|
|
"hexColor": "#000000"
|
|
},
|
|
"buttonHexColor": "#ffffff"
|
|
},
|
|
"primaryAction": {
|
|
"actionUrl": "https://www.google.com"
|
|
},
|
|
"secondaryAction": {
|
|
"actionUrl": "https://www.google.com"
|
|
},
|
|
"backgroundHexColor": "#ffffff"
|
|
}
|
|
},
|
|
"priority": {
|
|
"value": 1
|
|
},
|
|
"triggeringConditions": [
|
|
{
|
|
"fiamTrigger": "ON_FOREGROUND"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"expirationEpochTimestampMillis": "1537896430193"
|
|
}
|