Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase In-app messaging callbacks #2354

Merged
merged 13 commits into from
Feb 8, 2019
Merged

Conversation

christibbs
Copy link
Contributor

Adds functionality for apps to receive message lifecycle callbacks by registering a delegate that implements a fleshed out FIRInAppMessagingDisplayDelegate:

// Swift
InAppMessaging.inAppMessaging().delegate = self
// Objective-C
[FIRInAppMessaging inAppMessaging].delegate = self;

Fleshed out FIRInAppMessagingDisplayDelegate is now:
- (void)messageClicked:(FIRInAppMessagingDisplayMessage *)inAppMessage
- (void)messageDismissed:(FIRInAppMessagingDisplayMessage *)inAppMessage dismissType:(FIRInAppMessagingDismissType)dismissType
- (void)impressionDetectedForMessage:(FIRInAppMessagingDisplayMessage *)inAppMessage
- (void)displayErrorForMessage:(FIRInAppMessagingDisplayMessage *)inAppMessage error:(NSError *)error

TODO: Add unit tests to ensure delegate callbacks are fired.

Copy link
Member

@paulb777 paulb777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run scripts/style.sh and get Travis green - https://travis-ci.org/firebase/firebase-ios-sdk/jobs/489332949

@christibbs christibbs requested review from morganchen12 and removed request for ryanwilson February 8, 2019 20:41
@christibbs
Copy link
Contributor Author

Addressed @paulb777 's changes.

@christibbs christibbs merged commit c8899e2 into master Feb 8, 2019
bstpierr added a commit that referenced this pull request Feb 19, 2019
* master:
  E2e tests split (#2401)
  Split auth api tests into multiple cases (#2399)
  Add a ToString function to create human-readable debug descriptions (#2384)
  Split Auth unit tests (#2396)
  Create umbrella header for FIAM (#2392)
  Deprecate setMinimumSessionInterval (#2305)
  Forbid queries endAt an uncommitted server timestamp. (#2382)
  update changelog for release (#2383)
  Fix FIAM Travic CI issues (#2380)
  Remove swift sample for Auth (#2371)
  C++ migration: port `FSTTransaction` (#2362)
  Fix a bug where unlinking emailpassword doesn’t remove provider data (#2370)
  Fix a bug where sign in with Game Center doesn’t return additional user info (#2368)
  Firebase In-app messaging callbacks (#2354)
  Fix a bug where sign in with email link always return isNewUser as false (#2363)
  C++ migration: eliminate `FSTRemoteStore` (#2338)
@paulb777 paulb777 deleted the fiam-message-callbacks branch February 20, 2019 18:28
@firebase firebase locked and limited conversation to collaborators Oct 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants