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

chore: test multiple push event handlers in fcm sample app #274

Merged

Conversation

levibostian
Copy link
Member

@levibostian levibostian commented Jun 18, 2024

Part of: https://linear.app/customerio/issue/MBL-383/[bug]-customer-unable-to-handle-push-notification-event-on-ios-with

Tests this iOS bug fix in FCM sample app, while also testing local push notifications in the app.

This PR:

  • displays local push notifications, which we use for QA testing local push
  • adds a push event handler for local push in AppDelegate.

After this PR, the FCM sample app will have 3 push event handlers: CIO SDK, rnfirebase, and the host iOS app (AppDelegate). This environment allows us to test the iOS bug that is caused when there are at least 2 push event handlers installed in an app.

Testing:

  • Local push QA regression tests.
  • Non-CIO FCM push QA regression tests (send a FCM push from Firebase console instead of Fly).
    For all QA tests, we expect that both rnfirebase and the host app are able to handle the push events.

@levibostian levibostian self-assigned this Jun 18, 2024
@levibostian levibostian changed the title add npm module for showing local notifications chore: test multiple push event handlers in fcm sample app Jun 18, 2024
@levibostian levibostian requested a review from a team June 18, 2024 20:00
Copy link
Member Author

Choose a reason for hiding this comment

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

This PR is identical in logic to the APN app. Same 3rd party SDK for local push, same callback methods added.

Copy link
Member Author

Choose a reason for hiding this comment

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

Only here for testing until the native iOS SDK goes to prod.

push: notification.payload
});

completion({ alert: true, sound: true, badge: true });
Copy link
Contributor

Choose a reason for hiding this comment

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

nice that they cater the api level check themselves? 🤯

Base automatically changed from levi/fix-apn-sample-app to main June 20, 2024 13:40
@levibostian levibostian force-pushed the levi/multiple-push-handlers-sampleapps branch from 7a3868c to 9e16474 Compare June 24, 2024 19:23
@levibostian levibostian changed the base branch from main to levi/multiple-push-handlers June 24, 2024 19:23
@levibostian levibostian merged commit f3ab886 into levi/multiple-push-handlers Jun 26, 2024
7 checks passed
@levibostian levibostian deleted the levi/multiple-push-handlers-sampleapps branch June 26, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants